From 9ee76ca43bc7f8a6e9bf2f6064136f3790497b35 Mon Sep 17 00:00:00 2001 From: Diana-Maria Dumitru Date: Thu, 15 Feb 2024 13:21:02 +0200 Subject: [PATCH] Fixing PRELIM task "PRELIM | 4.3.3 | Find all sudoers files" mentioned in issue https://code.siemens.com/infosec-pss-gov/security-crafter-baseline-automations/ansible-lockdown/amazon2023-cis/-/issues/22. Signed-off-by: Diana-Maria Dumitru --- tasks/prelim.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks/prelim.yml b/tasks/prelim.yml index bfbac94..fabe6d3 100644 --- a/tasks/prelim.yml +++ b/tasks/prelim.yml @@ -234,17 +234,15 @@ - authconfig - auditd -- name: "PRELIM | 4.3.3 | Find all sudoers files." +- name: "PRELIM | 4.3.4 | Find all sudoers files." ansible.builtin.shell: "find /etc/sudoers /etc/sudoers.d/ -type f ! -name '*~' ! -name '*.*'" changed_when: false failed_when: false check_mode: false register: amzn2023cis_sudoers_files when: - - amzn2023cis_rule_4_3_3 or - amzn2023cis_rule_4_3_4 + - amzn2023cis_rule_4_3_4 tags: - - rule_4.3.3 - rule_4.3.4 - sudo - patch