Skip to content

Commit

Permalink
Merge pull request #1 from jvoss/markh_rhel9_molecule_fix
Browse files Browse the repository at this point in the history
chore: update additional for rhel9 support
  • Loading branch information
markh0338 authored Apr 8, 2024
2 parents ee9506a + 266a706 commit c1f706a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion molecule/default/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
db_locale: C.UTF-8
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version == '8'
- ansible_distribution_major_version >= '8'
- lookup('env', 'CI') != 'true'

- name: Install crontabs
Expand Down
9 changes: 9 additions & 0 deletions tasks/install.redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
when:
- ansible_distribution == 'Fedora'

- name: install.redhat | install packages missing on RHEL9
ansible.builtin.package:
name: "{{ item }}"
state: present
loop:
- cronie
when:
- ansible_distribution_major_version == '9'

- name: install.redhat | install required system packages
ansible.builtin.yum:
name: "{{ item }}"
Expand Down

0 comments on commit c1f706a

Please sign in to comment.