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