Fixed fail when certain users not present.

This commit is contained in:
Egon Rijpkema 2017-05-23 14:55:54 +02:00
parent d7a9312682
commit e2198c8afb
1 changed files with 6 additions and 2 deletions

View File

@ -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