Skip to content

Commit

Permalink
Merge pull request #275 from jsonar-cpapke/fix_dobule_discovered_vari…
Browse files Browse the repository at this point in the history
…able

remove extra discovered_ prefix from variable
  • Loading branch information
uk-bolly authored Jan 10, 2025
2 parents 39270db + cc8e32f commit b683b94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/section_5/cis_5.3.2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b683b94

Please sign in to comment.