From 345928b74fa3a4ea4da211a9fdc689b67d39de43 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Fri, 21 Feb 2025 09:45:33 +0000 Subject: [PATCH] updated 5.1.1 logic for ec2 image Signed-off-by: Mark Bolwell --- tasks/section_5/cis_5.1.x.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/section_5/cis_5.1.x.yml b/tasks/section_5/cis_5.1.x.yml index 7261726..7a55bda 100644 --- a/tasks/section_5/cis_5.1.x.yml +++ b/tasks/section_5/cis_5.1.x.yml @@ -26,7 +26,7 @@ register: discovered_sshd_confs - name: "5.1.1 | PATCH | Ensure permissions on /etc/ssh/sshd_config are configured" - when: (item.path != "'/etc/ssh/sshd_config.d/60-cloudimg-settings.conf'" and system_is_ec2 ) + when: (item.path != '/etc/ssh/sshd_config.d/60-cloudimg-settings.conf' and system_is_ec2 ) ansible.builtin.file: path: "{{ item.path }}" recurse: false