From 2d1a80fc7ec00ad7e520f565d28d6ad739824972 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Mon, 19 Feb 2024 14:17:11 +0000 Subject: [PATCH] change logic thanks to @rjacobs1990 see #175 Signed-off-by: Mark Bolwell --- tasks/section_4/cis_4.1.4.x.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/section_4/cis_4.1.4.x.yml b/tasks/section_4/cis_4.1.4.x.yml index 7d683cf..c42f876 100644 --- a/tasks/section_4/cis_4.1.4.x.yml +++ b/tasks/section_4/cis_4.1.4.x.yml @@ -65,7 +65,7 @@ ansible.builtin.file: path: "{{ item.path }}" mode: "{{ '0600' if item.mode == '0600' else '0640' }}" - loop: "{{ auditd_conf_files.files | default([]) }}" + loop: "{{ auditd_conf_files.files }}" loop_control: label: "{{ item.path }}" when: