Skip to content

Commit

Permalink
CIS 4.5.1.6 difok regex incorrectly matches any line
Browse files Browse the repository at this point in the history
Signed-off-by: Karl DeBisschop <[email protected]>
  • Loading branch information
kdebisschop committed Nov 27, 2023
1 parent f5d0a54 commit ba0d9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/section_4/cis_4.5.1.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
- name: "4.5.1.6 | PATCH | Ensure the number of changed characters in a new password is configured"
ansible.builtin.lineinfile:
path: /etc/security/pwquality.conf
regexp: '^(#\s+|)difok|'
regexp: '^(#\s+|)difok'
line: 'difok = {{ ubtu20cis_pass.character_changed }}'
create: true
mode: 0640
Expand Down

0 comments on commit ba0d9b3

Please sign in to comment.