mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
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:
|
||||
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 }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue