forked from ansible-lockdown/RHEL9-CIS
improve logic if files absent since find
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
5f94f60e69
commit
2c654ada1b
1 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,8 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
mode: 'u-x,g-wx,o-rwx'
|
mode: 'u-x,g-wx,o-rwx'
|
||||||
|
failed_when: rhel9cis_6_3_4_5_file_list.state not in '[ file, absent ]'
|
||||||
|
register: rhel9cis_6_3_4_5_file_list
|
||||||
loop: "{{ prelim_auditd_conf_files.files }}"
|
loop: "{{ prelim_auditd_conf_files.files }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.path }}"
|
label: "{{ item.path }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue