mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 14:23:05 +00:00
remove extra discovered_ prefix from variable
Signed-off-by: Christopher Papke <chris.papke@thalesgroup.com>
This commit is contained in:
parent
f057484a7a
commit
cc8e32fb2d
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue