Fixed fail when certain users not present.
This commit is contained in:
parent
d7a9312682
commit
e2198c8afb
@ -1,8 +1,13 @@
|
||||
---
|
||||
# Tasks to set users
|
||||
- group:
|
||||
name: admin
|
||||
state: present
|
||||
|
||||
- user:
|
||||
group: admin
|
||||
name: "{{ item }}"
|
||||
comment: "Admin users"
|
||||
group: admin
|
||||
with_items:
|
||||
- egon
|
||||
- wim
|
||||
@ -18,4 +23,3 @@
|
||||
user: egon
|
||||
key: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUBdTEHUj6MxvfEU7KcI+UPAvqJ9jGJ7hHm3e7XFTb9 egon@egon-pc'
|
||||
state: present
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user