forked from ansible-lockdown/RHEL9-CIS
added args warn for shell
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
66814a6f01
commit
95d8152603
24 changed files with 187 additions and 24 deletions
|
|
@ -4,10 +4,10 @@
|
|||
block:
|
||||
- name: Check if python36-rpm package installed
|
||||
shell: rpm -q python36-rpm
|
||||
failed_when: ( python36_rpm_present.rc not in [ 0, 1 ] )
|
||||
changed_when: false
|
||||
args:
|
||||
warn: false
|
||||
failed_when: ( python36_rpm_present.rc not in [ 0, 1 ] )
|
||||
changed_when: false
|
||||
register: python36_rpm_present
|
||||
|
||||
- name: Add the EPEL repository required for the python36-rpm pkg
|
||||
|
|
@ -29,6 +29,8 @@
|
|||
|
||||
- name: Disable Epel repo if installed earlier
|
||||
shell: yum-config-manager disable epel
|
||||
args:
|
||||
warn: false
|
||||
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