forked from ansible-lockdown/RHEL9-CIS
moved 5.6.6 testing to main task
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
2168a68b4e
commit
d770c69aca
1 changed files with 2 additions and 10 deletions
|
|
@ -112,16 +112,8 @@
|
||||||
- rule_5.6.5
|
- rule_5.6.5
|
||||||
|
|
||||||
- name: "5.6.6 | PATCH | Ensure root password is set"
|
- name: "5.6.6 | PATCH | Ensure root password is set"
|
||||||
block:
|
ansible.builtin.debug:
|
||||||
- name: "5.6.6 | PATCH | Ensure root password is set"
|
msg: "The root password has been set as per the assert in early stages"
|
||||||
ansible.builtin.shell: passwd -S root | grep "Password set, SHA512 crypt"
|
|
||||||
changed_when: false
|
|
||||||
register: root_passwd
|
|
||||||
|
|
||||||
- name: "5.6.6 | PATCH | Ensure root password is set"
|
|
||||||
ansible.builtin.fail:
|
|
||||||
msg: The root password is not set
|
|
||||||
when: root_passwd.rc != 0
|
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_5_6_6
|
- rhel9cis_rule_5_6_6
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue