forked from ansible-lockdown/RHEL9-CIS
Lint updates & control alignment
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
bcc5922832
commit
7c6555d92e
7 changed files with 26 additions and 50 deletions
|
|
@ -41,7 +41,6 @@
|
|||
tags:
|
||||
- level1-server
|
||||
- level1-workstation
|
||||
- automated
|
||||
- patch
|
||||
- accounts
|
||||
- rule_5.6.2
|
||||
|
|
@ -65,7 +64,6 @@
|
|||
tags:
|
||||
- level1-server
|
||||
- level1-workstation
|
||||
- automated
|
||||
- patch
|
||||
- accounts
|
||||
- rule_5.6.3
|
||||
|
|
@ -79,7 +77,6 @@
|
|||
tags:
|
||||
- level1-server
|
||||
- level1-workstation
|
||||
- automated
|
||||
- patch
|
||||
- accounts
|
||||
- rule_5.6.4
|
||||
|
|
@ -111,7 +108,26 @@
|
|||
tags:
|
||||
- level1-server
|
||||
- level1-workstation
|
||||
- automated
|
||||
- patch
|
||||
- accounts
|
||||
- rule_5.6.5
|
||||
|
||||
- name: "5.6.6 | PATCH | Ensure root password is set"
|
||||
block:
|
||||
- name: "5.6.6 | PATCH | Ensure root password is set"
|
||||
ansible.builtin.shell: passwd -S root | grep "Password set, SHA512 crypt"
|
||||
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:
|
||||
- rhel9cis_rule_5_6_6
|
||||
tags:
|
||||
- level1-server
|
||||
- level1-workstation
|
||||
- patch
|
||||
- accounts
|
||||
- root
|
||||
- rule_5.6.6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue