forked from ansible-lockdown/RHEL9-CIS
Addec changed_when 6.2.1
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
3f76affa5b
commit
02113b783a
1 changed files with 1 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
block:
|
||||
- name: "6.2.1 | AUDIT | Ensure accounts in /etc/passwd use shadowed passwords | discover"
|
||||
ansible.builtin.shell: awk -F':' '($2 != "x" ) { print $1 " is not set to shadowed passwords "}' /etc/passwd
|
||||
changed_when: false
|
||||
register: shadow_passwd
|
||||
|
||||
- name: "6.2.1 | AUDIT | Ensure accounts in /etc/passwd use shadowed passwords | Output"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue