Skip to content

Commit 3b5c958

Browse files
committed
replace yum with dnf
Signed-off-by: Sebastian Gumprich <rndmh3ro@users.noreply.github.com>
1 parent 0fad6e0 commit 3b5c958

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

molecule/mysql_hardening/prepare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
- ansible_distribution_major_version|int < 20
6868

6969
- name: Install required MySQL Python libraries on RHEL
70-
ansible.builtin.yum:
70+
ansible.builtin.dnf:
7171
name: "{% if 'python3' in ansible_python_interpreter | default('') %}python36-PyMySQL{% else %}python2-PyMySQL{% endif %}"
7272
when:
7373
- ansible_os_family == "RedHat"

molecule/os_hardening/prepare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
when: ansible_facts.os_family == 'Archlinux'
4242

4343
- name: Install required tools on RHEL # noqa ignore-errors
44-
ansible.builtin.yum:
44+
ansible.builtin.dnf:
4545
name:
4646
- openssh-clients
4747
- openssh

molecule/os_hardening_vm/prepare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
when: ansible_facts.os_family == 'Archlinux'
7474

7575
- name: Install required tools on RHEL # noqa ignore-errors
76-
ansible.builtin.yum:
76+
ansible.builtin.dnf:
7777
name:
7878
- openssh-clients
7979
- openssh

molecule/ssh_hardening/prepare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
when: ansible_facts.distribution == 'Fedora'
1414

1515
- name: Install packages # noqa ignore-errors
16-
ansible.builtin.yum:
16+
ansible.builtin.dnf:
1717
name:
1818
- openssh-clients
1919
- openssh-server

molecule/ssh_hardening_custom_tests/prepare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
when: ansible_facts.distribution == 'Fedora'
1414

1515
- name: Install packages # noqa ignore-errors
16-
ansible.builtin.yum:
16+
ansible.builtin.dnf:
1717
name:
1818
- openssh-clients
1919
- openssh-server

roles/os_hardening/tasks/pam_rhel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Install sssd-clients
3-
ansible.builtin.yum:
3+
ansible.builtin.dnf:
44
name: sssd-client
55
state: present
66
when:

roles/os_hardening/tasks/yum.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
- /etc/yum/pluginconf.d/rhnplugin.conf
4646

4747
- name: Remove deprecated or insecure packages | package-01 - package-09
48-
ansible.builtin.yum:
48+
ansible.builtin.dnf:
4949
name: "{{ os_security_packages_list }}"
5050
state: absent
5151
when: os_security_packages_clean | bool

0 commit comments

Comments
 (0)