4
0
Fork 0

added args warn for shell

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2022-01-13 11:46:13 +00:00
parent e9a390c693
commit 66814a6f01
No known key found for this signature in database
GPG key ID: F734FDFC154B83FB
4 changed files with 16 additions and 2 deletions

View file

@ -37,6 +37,8 @@
block:
- name: "Check su group exists if defined"
shell: grep -w "{{ rhel9cis_sugroup }}" /etc/group
args:
warn: false
register: sugroup_exists
changed_when: false
failed_when: sugroup_exists.rc >= 2