forked from ansible-lockdown/RHEL9-CIS
use var values for pam_faillock
Signed-off-by: Jay Olinares <jay.olinares@gmail.com>
This commit is contained in:
parent
1ef886c0a9
commit
fb4216be9f
1 changed files with 2 additions and 2 deletions
|
|
@ -38,8 +38,8 @@
|
|||
regexp: "{{ item.regexp }}"
|
||||
line: "{{ item.line }}"
|
||||
loop:
|
||||
- { regexp: '^\s*deny\s*=\s*[1-5]\b', line: 'deny = 5' }
|
||||
- { regexp: '^\s*unlock_time\s*=\s*(0|9[0-9][0-9]|[1-9][0-9][0-9][0-9]+)\b', line: 'unlock_time = 900' }
|
||||
- { regexp: '^\s*deny\s*=\s*[1-5]\b', line: 'deny = {{ rhel9cis_pam_faillock.deny }}' }
|
||||
- { regexp: '^\s*unlock_time\s*=\s*(0|9[0-9][0-9]|[1-9][0-9][0-9][0-9]+)\b', line: 'unlock_time = {{ rhel9cis_pam_faillock.unlock_time }}' }
|
||||
when:
|
||||
- rhel9cis_rule_5_5_2
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue