I'm kinda newbie with Ansible. I have a hosts file that contains 4 hosts.
I also have a 'copymap' dictionary that I built in order to copy data (folders) between the servers (the full 'copymap' dictionary is much bigger than the example below).
copymap:
- {service: "zeppelin", src: '3.3.3.3', dest: '2.2.2.2'}
- {service: "local_data", src: '4.4.4.4', dest: '1.1.1.1'}
I would like to copy the data between the servers, when the source is copymap.src and the destination is copymap.dest.
I know how to iterate using 'with_items', but I'm not sure I understand how I can specify source and destination servers. Did anyone used the built-in 'copy' module to copy from dynamic remote to remote servers?
--
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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4506c159-1216-4efc-ab07-ae1a24900208%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.