The group vars will overwrite each other - if a host is in two groups that
share vars.
Try putting a dictionary car in the host vars for the host:
install_paths:
- '/opt/install1'
- '/opt/install2'
Then in the task use with_items: install_paths (not sure what task you are
using so here using the copy module for example)
- copy
src: localsrc
dest: "{item}"
with_items: install_paths
That should do it as item is replaces with each element in the with_items.
--
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/ff71401d-1a09-45d4-8a16-84e39d86a0a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.