Skip to content

Commit

Permalink
Merge pull request #404 from dderemiah/typo_4.4.3.2.5
Browse files Browse the repository at this point in the history
changed maxseq to maxsequence to correct the syntax
  • Loading branch information
uk-bolly authored Aug 20, 2024
2 parents e3bea9e + 9e007d3 commit 728a39e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/section_4/cis_4.4.3.2.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,14 @@
ansible.builtin.lineinfile:
path: /etc/security/pwquality.conf
state: present
regexp: '^(#|)\s*maxseq\s*=\s*\d'
line: "maxseq = {{ rhel8cis_pam_pwquality['maxseq'] }}"
regexp: '^(#|)\s*maxsequence\s*=\s*\d'
line: "maxsequence = {{ rhel8cis_pam_pwquality['maxseq'] }}"

- name: "4.4.3.2.5 | PATCH | Ensure password maximum sequential characters is configured | pam_files"
when: not rhel8cis_allow_authselect_updates
ansible.builtin.replace:
path: "/etc/pam.d/{{ item }}-auth"
regexp: ^(\s*password\s+(requisite|required|sufficient)\s+pam_pwquality\.so)(.*)\s+maxseq\s*=\s*\S+(.*$)
regexp: ^(\s*password\s+(requisite|required|sufficient)\s+pam_pwquality\.so)(.*)\s+maxsequence\s*=\s*\S+(.*$)
replace: \1\2\3
loop:
- password
Expand All @@ -204,7 +204,7 @@
notify: Update_authselect
ansible.builtin.replace:
path: "/etc/authselect/custom/{{ rhel8cis_authselect['custom_profile_name'] }}/{{ item }}-auth"
regexp: ^(\s*password\s+(requisite|required|sufficient)\s+pam_pwquality\.so)(.*)\s+maxseq\s*=\s*\S+(.*$)
regexp: ^(\s*password\s+(requisite|required|sufficient)\s+pam_pwquality\.so)(.*)\s+maxsequence\s*=\s*\S+(.*$)
replace: \1\2\3
loop:
- password
Expand Down

0 comments on commit 728a39e

Please sign in to comment.