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
|
|
@ -5,7 +5,7 @@
|
|||
- name: "2.2.2 | L1 | AUDIT | Ensure X Window System is not installed | capture xorg-x11 packages"
|
||||
shell: rpm -qa | grep xorg-x11
|
||||
args:
|
||||
warn: no
|
||||
warn: false
|
||||
failed_when: xorg_x11_installed.rc >=2
|
||||
check_mode: no
|
||||
changed_when: false
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
- name: "2.2.2 | L1 | PATCH | Ensure X Window System is not installed | remove packages if found"
|
||||
shell: "dnf remove {{ item }}"
|
||||
args:
|
||||
warn: no
|
||||
warn: false
|
||||
with_items:
|
||||
- xorg_x11_installed.stdout_lines
|
||||
when: xorg_x11_installed.stdout | length > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue