4
0
Fork 0

improve logic if files absent since find

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2024-08-15 17:03:28 +01:00
parent 5f94f60e69
commit 2c654ada1b
No known key found for this signature in database
GPG key ID: 997FF7FE93AEB5B9

View file

@ -50,6 +50,8 @@
ansible.builtin.file:
path: "{{ item.path }}"
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_control:
label: "{{ item.path }}"