Fix the users existence conditional.
This commit is contained in:
parent
f502aaac81
commit
84205634a1
|
@ -69,7 +69,7 @@
|
|||
loop: '{{ users_system_users }}'
|
||||
when:
|
||||
- item.ssh_key is defined
|
||||
- item.state is not defined or item.state != "present"
|
||||
- item.state is not defined or item.state == "present"
|
||||
|
||||
- name: Add the admin users to the sudoers group
|
||||
ansible.builtin.user:
|
||||
|
@ -79,7 +79,7 @@
|
|||
loop: '{{ users_system_users }}'
|
||||
when:
|
||||
- item.admin is defined and item.admin
|
||||
- item.state is not defined or item.state != "present"
|
||||
- item.state is not defined or item.state == "present"
|
||||
|
||||
- name: Manage additional users
|
||||
tags: users
|
||||
|
|
Loading…
Reference in New Issue