mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
replaced command with shell
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
ac42f8a28f
commit
3b19db6812
19 changed files with 75 additions and 75 deletions
|
|
@ -3,7 +3,7 @@
|
|||
- name: "PREREQ | Add the required packages | Python 3"
|
||||
block:
|
||||
- name: Check if python36-rpm package installed
|
||||
command: rpm -q python36-rpm
|
||||
shell: rpm -q python36-rpm
|
||||
failed_when: ( python36_rpm_present.rc not in [ 0, 1 ] )
|
||||
changed_when: false
|
||||
args:
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
- libselinux-python3
|
||||
|
||||
- name: Disable Epel repo if installed earlier
|
||||
command: yum-config-manager disable epel
|
||||
shell: yum-config-manager disable epel
|
||||
when: epel_installed.changed
|
||||
when:
|
||||
- ( ansible_python.version.major == 3 and ansible_python.version.minor == 6 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue