Merge pull request #275 from jsonar-cpapke/fix_dobule_discovered_variable

remove extra discovered_ prefix from variable
This commit is contained in:
uk-bolly 2025-01-10 16:31:46 +00:00 committed by GitHub
commit b683b940f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,8 +143,8 @@
- 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
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"