diff --git a/tasks/section_6/cis_6.3.4.x.yml b/tasks/section_6/cis_6.3.4.x.yml index 568e5c2..5977406 100644 --- a/tasks/section_6/cis_6.3.4.x.yml +++ b/tasks/section_6/cis_6.3.4.x.yml @@ -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 }}"