mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
Merge pull request #275 from jsonar-cpapke/fix_dobule_discovered_variable
remove extra discovered_ prefix from variable
This commit is contained in:
commit
b683b940f5
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"
|
- name: "5.3.2.5 | AUDIT | Ensure pam_unix module is enabled"
|
||||||
ansible.builtin.shell: grep -P -- '\b(pam_unix\.so)\b' /etc/authselect/"$(head -1 /etc/authselect/authselect.conf)"/{system,password}-auth
|
ansible.builtin.shell: grep -P -- '\b(pam_unix\.so)\b' /etc/authselect/"$(head -1 /etc/authselect/authselect.conf)"/{system,password}-auth
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: discovered_discovered_authselect_pam_unix.rc not in [ 0, 1 ]
|
failed_when: discovered_authselect_pam_unix.rc not in [ 0, 1 ]
|
||||||
register: discovered_discovered_authselect_pam_unix
|
register: discovered_authselect_pam_unix
|
||||||
|
|
||||||
- name: "5.3.2.5 | PATCH | Ensure pam_unix module is enabled | system-auth"
|
- 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"
|
when: "'system-auth:password' not in discovered_authselect_pam_unix.stdout"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue