4
0
Fork 0

removed quotes not required

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2023-08-10 08:28:43 +01:00
parent 65207ed2cf
commit 73cf599e48
No known key found for this signature in database
GPG key ID: 1DE02A772D0908F9

View file

@ -44,14 +44,14 @@
- user_passwd
- rule_5.3.4
- name: "Ensure root password is set"
- name: Ensure root password is set
block:
- name: "Ensure root password is set"
- name: Ensure root password is set
ansible.builtin.shell: passwd -S root | grep "Password set, SHA512 crypt"
changed_when: false
register: root_passwd_set
- name: "Ensure root password is set"
- name: Ensure root password is set
ansible.builtin.assert:
that: root_passwd_set.rc == 0
fail_msg: "You have rule 5.6.6 enabled this requires that you have a root password set"