forked from ansible-lockdown/RHEL9-CIS
removed arg warn
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
cb0dd58df5
commit
77dd593e0f
6 changed files with 0 additions and 30 deletions
|
|
@ -4,8 +4,6 @@
|
|||
# List users in order to look files inside each home directory
|
||||
- name: "PRELIM | List users accounts"
|
||||
shell: "awk -F: '{print $1}' /etc/passwd"
|
||||
args:
|
||||
warn: false
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
register: users
|
||||
|
|
@ -16,8 +14,6 @@
|
|||
|
||||
- name: "PRELIM | Gather accounts with empty password fields"
|
||||
shell: "cat /etc/shadow | awk -F: '($2 == \"\" ) {j++;print $1; } END {exit j}'"
|
||||
args:
|
||||
warn: false
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
register: empty_password_accounts
|
||||
|
|
@ -28,8 +24,6 @@
|
|||
|
||||
- name: "PRELIM | Gather UID 0 accounts other than root"
|
||||
shell: "cat /etc/passwd | awk -F: '($3 == 0 && $1 != \"root\") {i++;print $1 } END {exit i}'"
|
||||
args:
|
||||
warn: false
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
register: rhel9cis_uid_zero_accounts_except_root
|
||||
|
|
@ -50,8 +44,6 @@
|
|||
|
||||
- name: "PRELIM | Gather system-wide crypto-policy"
|
||||
shell: update-crypto-policies --show
|
||||
args:
|
||||
warn: false
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
register: system_wide_crypto_policy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue