mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
Use shell for grep with shell expansions
Signed-off-by: Christopher Papke <chris.papke@thalesgroup.com>
This commit is contained in:
parent
f057484a7a
commit
88a497b195
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