Thanks to @stwongst #125

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2024-02-19 14:33:38 +00:00
parent 0c0dde24db
commit f0ebe395a5
No known key found for this signature in database
GPG key ID: 1DE02A772D0908F9

View file

@ -47,7 +47,7 @@
- name: Ensure root password is set - name: Ensure root password is set
block: block:
- name: Ensure root password is set - name: Ensure root password is set
ansible.builtin.shell: passwd -S root | grep "Password set, SHA512 crypt" ansible.builtin.shell: passwd -S root | egrep -e "(Password set, SHA512 crypt|Password locked)"
changed_when: false changed_when: false
register: root_passwd_set register: root_passwd_set