Why not "with_nested"?
as per ams:
- name: fetch files from the server
fetch: src={{ item }}
dest=/backup/{{ item[1] }}/{{ inventory_hostname }}/{{ item[0] |
basename }}
with_nested:
- [ /root/.bash_profile, /some/other/file ]
- group_names
better yet - provide list of files as a variable.
--
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/178373bd-090f-4ef0-b13e-bfc3bc826798%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.