mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 22:23:06 +00:00
Added blank line between each named task for consistency.
Signed-off-by: John Foster <robopickle@proton.me>
This commit is contained in:
parent
e100b02f44
commit
467434a56f
1 changed files with 2 additions and 0 deletions
|
|
@ -34,6 +34,7 @@
|
|||
msg: "No local account found for {{ ansible_env.SUDO_USER }} user. Skipping local account checks."
|
||||
when:
|
||||
- rhel9cis_ansible_user_password_set.stdout == "not found"
|
||||
|
||||
- name: "Check local account"
|
||||
block:
|
||||
- name: "Check password set for {{ ansible_env.SUDO_USER }} | Assert local password set"
|
||||
|
|
@ -43,6 +44,7 @@
|
|||
- rhel9cis_ansible_user_password_set.stdout != "!!"
|
||||
fail_msg: "You have {{ sudo_password_rule }} enabled but the user = {{ ansible_env.SUDO_USER }} has no password set - It can break access"
|
||||
success_msg: "You have a password set for the {{ ansible_env.SUDO_USER }} user"
|
||||
|
||||
- name: "Check account is not locked for {{ ansible_env.SUDO_USER }} | Assert local account not locked"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue