4
0
Fork 0

fix csv sugroup option updated

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2023-01-19 13:33:11 +00:00
parent cb609c1f1a
commit 999d7b5b1e
No known key found for this signature in database
GPG key ID: 1DE02A772D0908F9
2 changed files with 3 additions and 2 deletions

View file

@ -637,7 +637,7 @@ rhel9cis_futurepwchgdate_autofix: true
# 5.7
# rhel9cis_sugroup: sugroup # change accordingly wheel is default
# wheel users list
# wheel users list please supply comma seperated e.g. "vagrant,root"
rhel9cis_sugroup_users: "root"
## Section6 vars

View file

@ -120,8 +120,9 @@
- name: "5.3.7 | PATCH | Ensure access to the su command is restricted | wheel group contains root"
ansible.builtin.user:
name: "{{ rhel9cis_sugroup_users }}"
name: "{{ item }}"
groups: "{{ rhel9cis_sugroup | default('wheel') }}"
loop: "{{ rhel9cis_sugroup_users | split (',') }}"
when:
- rhel9cis_rule_5_3_7
tags: