I'm doing something like this
tasks:
- lineinfile: dest={{ item[0] }}/.gitignore create=yes regexp='{{
item[1] }}' line='*.{{ item[1] }}'
with_nested:
- [ '/tmp/foo', '/tmp/bar' ]
- [ 'lck', 'log', 'Log' ]
but then I want to do other operations on the same list of directories
(item[0]).
the vars section will only take key/value pairs, not arrays.
Can I group with_nested so it's specified once but apply to multiple
modules?
Or pre build an array that will work with_items or with_nested?
--
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].
For more options, visit https://groups.google.com/groups/opt_out.