From 77bfb923cfef75e4d41a4aa8465f0ed23fd57e6b Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Fri, 19 Jul 2024 08:31:54 +0100 Subject: [PATCH 1/2] fixed typo for issue 397 thanks to @dirkvdplas Signed-off-by: Mark Bolwell --- tasks/section_4/cis_4.4.2.x.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/section_4/cis_4.4.2.x.yml b/tasks/section_4/cis_4.4.2.x.yml index 08ef128..91ba6d3 100644 --- a/tasks/section_4/cis_4.4.2.x.yml +++ b/tasks/section_4/cis_4.4.2.x.yml @@ -73,7 +73,7 @@ ansible.builtin.shell: | grep -P -- '\bpam_pwquality\.so\b' /etc/pam.d/{password,system}-auth changed_when: false - failed_when: rhel8cis_pwquality_enabled.rc not in [ 0, 1 ] + failed_when: discovered_pwquality_enabled.rc not in [ 0, 1 ] register: discovered_pwquality_enabled - name: "4.4.2.3 | PATCH | Ensure pam_pwquality module is enabled | system-auth" From 81eba789e7574555be76b6d987001aec382e7a88 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Fri, 19 Jul 2024 13:27:58 +0100 Subject: [PATCH 2/2] 4.4.2.5 typo fixed Signed-off-by: Mark Bolwell --- tasks/section_4/cis_4.4.2.x.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/section_4/cis_4.4.2.x.yml b/tasks/section_4/cis_4.4.2.x.yml index 91ba6d3..2d1850e 100644 --- a/tasks/section_4/cis_4.4.2.x.yml +++ b/tasks/section_4/cis_4.4.2.x.yml @@ -138,7 +138,7 @@ ansible.builtin.shell: | grep -P -- '\b(pam_unix\.so)\b' /etc/authselect/"$(head -1 /etc/authselect/authselect.conf)"/{system,password}-auth changed_when: false - failed_when: rhel8cis_authselect_pam_unix.rc not in [ 0, 1 ] + failed_when: discovered_authselect_pam_unix.rc not in [ 0, 1 ] register: discovered_authselect_pam_unix - name: "4.4.2.5 | PATCH | Ensure pam_unix module is enabled | system-auth"