mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-26 07:03:07 +00:00
with_items to loop
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
904d7811d4
commit
8694bfde75
4 changed files with 8 additions and 14 deletions
|
|
@ -6,8 +6,7 @@
|
|||
ansible.builtin.user:
|
||||
name: "{{ item.id }}"
|
||||
shell: /usr/sbin/nologin
|
||||
with_items:
|
||||
- "{{ rhel9cis_passwd }}"
|
||||
loop: "{{ rhel9cis_passwd }}"
|
||||
when:
|
||||
- item.id != "root"
|
||||
- item.id != "sync"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue