I need to copy a file from /root
of ansible control node to remote node's /root
.
I am able to copy that file if i keep it at any other location (say /tmp) of control node and able to copy it to /root of remote node (since i mentioned become in ansible.cfg )
But how to copy file from /root of ansible control node to remote node's /root ?
It gives error as
'fatal: [testserver]: FAILED! => {"changed": false, "msg": "Could not find or access '/root/abc.txt' on the Ansible Controller'
Please note, file exists at /root/ of controller.
thanks,