It doesn't make sense to have a list of passwords, comments, shell, as only
one value can apply etc?
Here it reall only makes sense for groups, no?
Try this:
---
users:
- name: shinken
comment: "Shinken.user"
group:
- "shinken"
shell: "/bin/bash"
password:
"$6$cGTFMo0u$DPyI81Yn/9lFbAVMtTRy0vSXfn00ZaeBPg754BzDx7Aj6B6WZGicfjOjkeY9upT8HPvKV2voQ1SNuWIF2hfEi/"
- name: Prepare for Shinken|user
user: name={{ item.0.name }}
comment={{ item.0.comment }}
group={{ item.1.group }}
shell={{ item.0.shell }}
password={{ item.0.password }}
state=present
update_password=on_create
append=yes
with_subelements:
- users
- group
On 20 May 2014 12:17, Joachim Friberg <[email protected]> wrote:
> So what I'm trying to achive is not possible?
> How could I create a set of users using the variable's-file instead of
> "hardcoding" them into the task-file?
>
> --
> 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/e8aece25-b26c-4bab-a844-3d454c115c1d%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/e8aece25-b26c-4bab-a844-3d454c115c1d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAEhzMJDcGyPyJ%3DOSeMcXZQ7kQwF0YyxJ9ge%2Btr0hK-0LCu_zwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.