File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1313 - pam
1414 block :
1515 - name : " 5.3.3.3.1 | AUDIT | Ensure password history remember is configured | Check existing files"
16- ansible.builtin.shell : grep -Psi -- '^\s *password\s +[^#\n\r]+\s +pam_pwhistory\.so\s +([^#\n\r]+\s +)?remember=\d+\b' /etc/pam.d/common-password
16+ ansible.builtin.shell : grep -Psi -- '^\h *password\h +[^#\n\r]+\h +pam_pwhistory\.so\h +([^#\n\r]+\h +)?remember=\d+\b' /etc/pam.d/common-password
1717 register : discovered_pwhistory_remember
1818 changed_when : false
1919 failed_when : discovered_pwhistory_remember.rc not in [0, 1]
4040 - pam
4141 block :
4242 - name : " 5.3.3.3.2 | AUDIT | Ensure password history is enforced for the root user | Check existing files"
43- ansible.builtin.shell : grep -Psi -- '^\s *password\s +[^#\n\r]+\s +pam_pwhistory\.so\s +([^#\n\r]+\s +)?enforce_for_root\b' /etc/pam.d/common-password
43+ ansible.builtin.shell : grep -Psi -- '^\h *password\h +[^#\n\r]+\h +pam_pwhistory\.so\h +([^#\n\r]+\h +)?enforce_for_root\b' /etc/pam.d/common-password
4444 register : discovered_pwhistory_enforce_for_root
4545 changed_when : false
4646 failed_when : discovered_pwhistory_enforce_for_root.rc not in [0, 1]
6767 - pam
6868 block :
6969 - name : " 5.3.3.3.3 | AUDIT | Ensure pam_pwhistory includes use_authtok | Check existing files"
70- ansible.builtin.shell : grep -Psi -- '^\s *password\s +[^#\n\r]+\s +pam_pwhistory\.so\s +([^#\n\r]+\s +)?use_authtok\b' /etc/pam.d/common-password
70+ ansible.builtin.shell : grep -Psi -- '^\h *password\h +[^#\n\r]+\h +pam_pwhistory\.so\h +([^#\n\r]+\h +)?use_authtok\b' /etc/pam.d/common-password
7171 register : discovered_pwhistory_use_authtok
7272 changed_when : false
7373 failed_when : discovered_pwhistory_use_authtok.rc not in [0, 1]
You can’t perform that action at this time.
0 commit comments