forked from ansible-lockdown/RHEL9-CIS
removed line and updated requirement #53
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
7c09b264a1
commit
195e42e3ea
1 changed files with 3 additions and 3 deletions
|
|
@ -82,14 +82,14 @@
|
||||||
- name: "5.5.3 | PATCH | Ensure password reuse is limited | pwquality"
|
- name: "5.5.3 | PATCH | Ensure password reuse is limited | pwquality"
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/pam.d/system-auth
|
path: /etc/pam.d/system-auth
|
||||||
line: "password requisite pam_pwhistory.so try_first_pass local_users_only enforce_for_root retry=3 remember={{ rhel9cis_pam_faillock.remember }}"
|
line: "password requisite pam_pwhistory.so try_first_pass enforce_for_root retry=3 remember={{ rhel9cis_pam_faillock.remember }}"
|
||||||
insertafter: '^password\s*requisite\s*pam_pwquality.so'
|
insertafter: '^password\s*requisite\s*pam_pwquality.so'
|
||||||
|
|
||||||
- name: "5.5.3 | PATCH | Ensure password reuse is limited | pam_unix"
|
- name: "5.5.3 | PATCH | Ensure password reuse is limited | pam_unix"
|
||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
path: /etc/pam.d/system-auth
|
path: /etc/pam.d/system-auth
|
||||||
regexp: '^password\s*(sufficient|requisite|sufficient)\s*pam_unix.so.*$'
|
regexp: '^password\s*sufficient\s*pam_unix.so.*$'
|
||||||
replace: 'password requisite pam_unix.so sha512 shadow try_first_pass use_authtok remember={{ rhel9cis_pam_faillock.remember }}'
|
replace: 'password sufficient pam_unix.so sha512 shadow try_first_pass use_authtok remember={{ rhel9cis_pam_faillock.remember }}'
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_5_5_3
|
- rhel9cis_rule_5_5_3
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue