forked from ansible-lockdown/RHEL9-CIS
Update prelim logic to address #382
Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
This commit is contained in:
parent
2dfa9266a8
commit
5794114b3e
2 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# Changes to rhel9CIS
|
||||
|
||||
## 2.0.3 - Based on CIS v2.0.0
|
||||
- addressed issue #382 to improve regex logic on 5.4.2.4
|
||||
- improvment on crypto policy managed controls with var logic
|
||||
- addressed issue #384 thank you @polski-g
|
||||
- update command to shell module on tasks
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@
|
|||
- rule_5.4.2.4
|
||||
block:
|
||||
- name: "Ensure root password is set"
|
||||
ansible.builtin.shell: LC_ALL=C passwd -S root | grep -E "(Password set, SHA512 crypt|Password locked)"
|
||||
ansible.builtin.shell: LC_ALL=C passwd -S root | grep -E "(Password set|Password locked)"
|
||||
changed_when: false
|
||||
failed_when: prelim_root_passwd_set.rc not in [ 0, 1 ]
|
||||
register: prelim_root_passwd_set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue