mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 14:23:05 +00:00
improved logic for files that change state
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
6128104385
commit
11c980ec5f
1 changed files with 4 additions and 0 deletions
|
|
@ -68,6 +68,8 @@
|
|||
ansible.builtin.file:
|
||||
path: "{{ item.path }}"
|
||||
owner: root
|
||||
failed_when: rhel9cis_6_3_4_6_file_list.state not in '[ file, absent ]'
|
||||
register: rhel9cis_6_3_4_6_file_list
|
||||
loop: "{{ prelim_auditd_conf_files.files | default([]) }}"
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
|
@ -84,6 +86,8 @@
|
|||
ansible.builtin.file:
|
||||
path: "{{ item.path }}"
|
||||
group: root
|
||||
failed_when: rhel9cis_6_3_4_7_file_list.state not in '[ file, absent ]'
|
||||
register: rhel9cis_6_3_4_7_file_list
|
||||
loop: "{{ prelim_auditd_conf_files.files | default([]) }}"
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue