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 On Wednesday, April 3, 2019 at 4:08:42 AM UTC-7, amit ahuja wrote: > > 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 > > > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ab72deb4-ffc7-4d70-b053-ee8987689391%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
