removed quotes not required

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
Signed-off-by: Ionut Pruteanu <ionut.pruteanu@siemens.com>
This commit is contained in:
Mark Bolwell 2023-08-10 08:28:43 +01:00 committed by Ionut Pruteanu
parent a5de14b179
commit 84fe76b3fe
No known key found for this signature in database
GPG key ID: 95B7D43B702B3569

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"