From cc8e32fb2da05191c10fc935eb96c6f9716fa09c Mon Sep 17 00:00:00 2001 From: Christopher Papke Date: Tue, 7 Jan 2025 13:01:24 -0800 Subject: [PATCH] remove extra discovered_ prefix from variable Signed-off-by: Christopher Papke --- tasks/section_5/cis_5.3.2.x.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/section_5/cis_5.3.2.x.yml b/tasks/section_5/cis_5.3.2.x.yml index eddf5ee1..143b3c0b 100644 --- a/tasks/section_5/cis_5.3.2.x.yml +++ b/tasks/section_5/cis_5.3.2.x.yml @@ -143,8 +143,8 @@ - name: "5.3.2.5 | AUDIT | Ensure pam_unix module is enabled" ansible.builtin.command: grep -P -- '\b(pam_unix\.so)\b' /etc/authselect/"$(head -1 /etc/authselect/authselect.conf)"/{system,password}-auth changed_when: false - failed_when: discovered_discovered_authselect_pam_unix.rc not in [ 0, 1 ] - register: discovered_discovered_authselect_pam_unix + failed_when: discovered_authselect_pam_unix.rc not in [ 0, 1 ] + register: discovered_authselect_pam_unix - name: "5.3.2.5 | PATCH | Ensure pam_unix module is enabled | system-auth" when: "'system-auth:password' not in discovered_authselect_pam_unix.stdout"