You are the best! This should go in to the andible-docs.
I Just needed to modify it a small bit.
Here's the end result and code:
- name: Prepare for Shinken|user
user: name={{ item.0.name }}
comment={{ item.0.comment }}
group={{ item.1 }}
shell={{ item.0.shell }}
password={{ item.0.password }}
state=present
update_password=on_create
append=yes
with_subelements:
- users
- group
---
users:
- name: shinken
comment: "Shinken.user"
group:
- "shinken"
shell: "/bin/bash"
password:
"$6$cGTFMo0u$DPyI81Yn/9lFbAVMtTRy0vSXfn00ZaeBPg754BzDx7Aj6B6WZGicfjOjkeY9upT8HPvKV2voQ1SNuWIF2hfEi/"
Also tried it with multiple entries into the "user-list" in the var-file
and this worked too.
Thank you!
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/242d00c7-b03d-46b6-bda7-b26c8e22cef1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.