On Sat, Jul 8, 2017 at 6:09 PM, Anfield <[email protected]> wrote:
> Hi,
>
> Thanks for the reponse. This works but I dont quite understand it...
>
> So copylist is now basically a list with two listed values
> - src
> - src
>
> How does it pick up dest when its not really designated as a list item with
> a dash (-)?
> I wouldve expected -dest to be listed aswell twice
>
Does this give you ideas?
# In vars file/entry
normal_users:
- moe : { uid : "1205", groups : "{{web_groups}},wheel" }
- larry : { uid : "1203", groups : "{{web_groups}}" }
- curly : { uid : "1207", groups : "{{web_groups}}" }
# In task file
- name: List all Normal Users
debug: msg="Users {{ normal_users }} "
- name: List Normal Users one at a time
debug: msg="Users {{ item }} "
with_items: "{{ normal_users }} "
> --
> 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/6f9dc917-80a1-42ec-bb7c-65659fac9d43%40googlegroups.com.
>
> 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/CAHEKYV4LsxrSBpx2zX0hxXVe6qAq1PxnDXcRyA3X2%3Dnae6Kerg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.