mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-24 14:23:05 +00:00
Fix for #384, thank you @polski-g
Signed-off-by: Frederick Witty <frederickw@mindpointgroup.com>
This commit is contained in:
parent
de7555aa10
commit
b0ec6c4820
4 changed files with 4 additions and 3 deletions
|
|
@ -97,7 +97,7 @@
|
|||
(
|
||||
((prelim_ansible_user_password_set.stdout | length != 0) and (prelim_ansible_user_password_set.stdout != "!!" ))
|
||||
or
|
||||
(ansible_env.SUDO_USER in rhel10cis_sudoers_exclude_nopasswd_list)
|
||||
(ansible_env.SUDO_USER in rhel9cis_sudoers_exclude_nopasswd_list)
|
||||
)
|
||||
fail_msg: "You have {{ sudo_password_rule }} enabled but the user = {{ ansible_env.SUDO_USER }} has no password set or or the user is not included in the exception list for rule 5.2.4 - It can break access"
|
||||
success_msg: "You have a password set for the {{ ansible_env.SUDO_USER }} user or the user is included in the exception list for rule 5.2.4"
|
||||
|
|
|
|||
|
|
@ -61,6 +61,6 @@
|
|||
file: cis_1.7.x.yml
|
||||
|
||||
- name: "SECTION | 1.8 | Gnome Display Manager"
|
||||
when: rhel10cis_display_manager == 'gdm'
|
||||
when: rhel9cis_display_manager == 'gdm'
|
||||
ansible.builtin.import_tasks:
|
||||
file: cis_1.8.x.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue