Hi Ansible Experts,
Need to copy a file from Ansible tower server to remote server using copy module. Can you please help to achieve this using copy module or any other module in Ansible?
`
`
Hi Ansible Experts,
Need to copy a file from Ansible tower server to remote server using copy module. Can you please help to achieve this using copy module or any other module in Ansible?
`
`
I am getting source not found error while copying a file from Ansible Tower server to remote server. Actually file is available in the local path of Ansible Tower server. Any help is much appreciated.
do you have the file in all the nodes?
I have a temporary file created on Ansible Tower and able to send it via email. Additionally I would like to copy this file to remote server on some path. Can you please help me with this requirement?
Hi Jon,
The file is exist on Ansible tower server and able to lookup file, attach to email. However, using copy module, unable to copy this file from Ansible Tower server to remote server path.
`
- hosts: remoteserver
tasks:
- name: Ansible copy file to remote server
copy:
src: /tmp/somefile.txt
dest: /opt/remote/server/path
`
Getting strange error. saying unable to find src file. On the other hand able to lookup file and attach to email.
Found the solution for copying a file from Ansible Tower server to a remote server when the Play is delegated to Tower server.
`