forked from ansible-lockdown/RHEL9-CIS
changed_when for idempotency. 5.6.
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
10f3a025d2
commit
3f76affa5b
1 changed files with 1 additions and 0 deletions
|
|
@ -116,6 +116,7 @@
|
||||||
block:
|
block:
|
||||||
- name: "5.6.6 | PATCH | Ensure root password is set"
|
- name: "5.6.6 | PATCH | Ensure root password is set"
|
||||||
ansible.builtin.shell: passwd -S root | grep "Password set, SHA512 crypt"
|
ansible.builtin.shell: passwd -S root | grep "Password set, SHA512 crypt"
|
||||||
|
changed_when: false
|
||||||
register: root_passwd
|
register: root_passwd
|
||||||
|
|
||||||
- name: "5.6.6 | PATCH | Ensure root password is set"
|
- name: "5.6.6 | PATCH | Ensure root password is set"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue