mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 14:23:05 +00:00
fixed thanks to cf-sewe
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
9db4b7fd81
commit
59e22e8600
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@
|
|||
dest: /etc/pam.d/system-auth
|
||||
state: present
|
||||
regexp: '^password requisite pam_pwquality.so'
|
||||
line: "password requisite pam_pwquality.so try_first_pass local_users_only enforce-for-root retry=3 remember={{ rhel9cis_pam_faillock.remember }}"
|
||||
line: "password requisite pam_pwquality.so try_first_pass local_users_only enforce_for_root retry=3 remember={{ rhel9cis_pam_faillock.remember }}"
|
||||
insertbefore: '^#?password ?'
|
||||
when:
|
||||
- rhel9cis_rule_5_4_1 or
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
dest: /etc/pam.d/password-auth
|
||||
state: present
|
||||
regexp: '^password requisite pam_pwquality.so'
|
||||
line: "password requisite pam_pwquality.so try_first_pass local_users_only enforce-for-root retry=3"
|
||||
line: "password requisite pam_pwquality.so try_first_pass local_users_only enforce_for_root retry=3"
|
||||
insertbefore: '^#?password ?'
|
||||
when: rhel9cis_rule_5_4_1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue