I want to loop over a hash list that will provide two items.
1) The file glob
2) the destination
Is this possible via some sort of nested loop and with_fileglob?
The list would look something like below, and I'm hoping a single 'copy'
command using with_fileglob can accomplish it. The list in actuality will
be several dozen lines long and passed as a parameter so hardcoding it is
not that easy.
list_of_items:
- {{ glob: "/path/to/items/*", dest: "/new/path/to/items/" }}
- {{ glob: "/path/to/moreitems/*", dest: "/new/path/to/moreitems/" }}
etc
--
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/e546ee1e-55df-4977-bf25-413fa29da11e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.