Hi,
i want to know if there is any way to copy complete directory from remote machine to local ansible machine . i tried to used fetch method but it is copying files with complete path which i dont want . pls help .
thanks
Amit
Hi,
i want to know if there is any way to copy complete directory from remote machine to local ansible machine . i tried to used fetch method but it is copying files with complete path which i dont want . pls help .
thanks
Amit
SCP you tried ?
If you don't want the complete path, you can set "flat: yes" in the fetch task and it will flatten the directory for you.
--Tony
https://docs.ansible.com/ansible/latest/modules/synchronize_module.html
see 'mode' specifically the 'pull' value