If prelim_auditd_logfile does not evaluate, check mode will fail on rule 6.2.4.3 with 'file () is absent, cannot continue' error
Signed-off-by: Shawn Hardwick <time4swim@gmail.com>
This commit is contained in:
parent
a9df5eb912
commit
9a2a7ad96f
|
@ -230,6 +230,7 @@
|
||||||
tags: always
|
tags: always
|
||||||
ansible.builtin.shell: "grep ^log_file /etc/audit/auditd.conf | awk '{ print $NF }'"
|
ansible.builtin.shell: "grep ^log_file /etc/audit/auditd.conf | awk '{ print $NF }'"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
check_mode: false
|
||||||
failed_when: prelim_auditd_logfile.rc not in [ 0, 1 ]
|
failed_when: prelim_auditd_logfile.rc not in [ 0, 1 ]
|
||||||
register: prelim_auditd_logfile
|
register: prelim_auditd_logfile
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue