forked from ansible-lockdown/RHEL9-CIS
Merge pull request #274 from jsonar-cpapke/fix_pam_unix_enabled_audit
Use shell for grep with shell expansions
This commit is contained in:
commit
39270dbbf3
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@
|
||||||
- rule_5.3.2.5
|
- rule_5.3.2.5
|
||||||
block:
|
block:
|
||||||
- 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.command: 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_discovered_authselect_pam_unix.rc not in [ 0, 1 ]
|
||||||
register: discovered_discovered_authselect_pam_unix
|
register: discovered_discovered_authselect_pam_unix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue