Update prelim logic to address #382

Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
This commit is contained in:
Frederick Witty 2025-09-09 15:12:01 -04:00
parent 2dfa9266a8
commit 5794114b3e
No known key found for this signature in database
GPG key ID: D29987C25A47D813
2 changed files with 2 additions and 1 deletions

View file

@ -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