I have few files in control machine ie host1.
My playbook/tasks are running on host2.
I need to copy the files from host1 to host2.
Please let me know how it can be done
I have few files in control machine ie host1.
My playbook/tasks are running on host2.
I need to copy the files from host1 to host2.
Please let me know how it can be done
Any help on this ?
Try the copy module:
Besides the copy module, there is the synchronize module for syncing many files in a directory, http://docs.ansible.com/ansible/synchronize_module.html. Feel free to review each of the modules that help with managing files, http://docs.ansible.com/ansible/list_of_files_modules.html