Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

00faff / Add cronie for AL2023 Molecule test instances #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,22 @@
path: /var/lib/cloud/instance/boot-finished
state: present
- name: Make sure python3 is installed
package:
ansible.builtin.package:
name: python3
state: present
- name: get EPEL on AWS Linux
command: amazon-linux-extras install epel -y
ansible.builtin.command: amazon-linux-extras install epel -y
when: (ansible_distribution == 'Amazon' and ansible_distribution_major_version == '2')
- name: Install cronie on AL2023 instances
ansible.builtin.package:
name: cronie
state: present
when: (ansible_distribution == 'Amazon' and ansible_distribution_major_version == '2023')
- name: Insert shutdown cron file in /etc/cron.d
ansible.builtin.cron:
name: "Shutdown test instance after hours"
hour: "22"
minute: "30"
job: "/usr/sbin/shutdown -h now"
user: root
cron_file: shutdown
name: "Shutdown test instance after hours"
hour: "22"
minute: "30"
job: "/usr/sbin/shutdown -h now"
user: root
cron_file: shutdown