forked from ansible-lockdown/RHEL9-CIS
use new var name
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
7374c37510
commit
9c771e03e4
1 changed files with 7 additions and 3 deletions
|
|
@ -3,10 +3,14 @@
|
|||
- name: "5.5.1 | PATCH | "
|
||||
block:
|
||||
- name: "5.5.1 | PATCH | Ensure password creation requirements are configured | Set pwquality config settings"
|
||||
blockinfile:
|
||||
lineinfile:
|
||||
path: /etc/security/pwquality.conf
|
||||
marker: "<!-- {mark} CIS 5.5.1 ANSIBLE MANAGED BLOCK -->"
|
||||
block: "{{ rhel9cis_pam_password }}"
|
||||
state: present
|
||||
regexp: ^{{ item.name }}
|
||||
line: "{{ item.name }} = {{ item.value }}"
|
||||
with_items:
|
||||
- { name: minlen, value: "{{ rhel9cis_pam_password.minlen }}" }
|
||||
- { name: minclass, value: "{{ rhel9cis_pam_password.minclass }}" }
|
||||
|
||||
- name: "5.5.1 | PATCH | Ensure password creation requirements are configured | Set system-auth retry settings"
|
||||
lineinfile:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue