I actually want one file per item in the collection, should have written
the example this way:
- template:
src: src.j2
dest: "/tmp/dest-{{ item.0 }}"
vars:
index: "{{ item.0 }}"
thing: "{{ item.1 }}"
with_indexed_items: things_collection
Le samedi 11 juillet 2015 04:18:51 UTC+2, Brian Coca a écrit :
>
> I'm not sure what you are asking for here, things_collection is passed
> to your template as are all other vars defined in the play and for the
> host, there is no need to put it in with_ if you just want to directly
> access the var already.
>
>
> --
> Brian Coca
>
--
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/8219744e-c113-4f8e-b47d-d0d05e2b5542%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.