Hi Raja Can you please share a sample playbook where you need to fetch files from one node and transfer those file to multiple nodes.
On Thu, Apr 8, 2021 at 7:36 AM Raja Natte <[email protected]> wrote: > Hi.. > > You can use fetch and copy.. clean up on control node in same playbook . > We are doing for security files.. > > Thanks > > On Wed, Apr 7, 2021, 9:49 PM Shivam Arora <[email protected]> wrote: > >> Hi Community Members, >> >> I am writing an Ansible playbook for which I want to copy files directly >> from Server A to Server B directly, skipping the Ansible node, i.e., I do >> not want to use Fetch and Copy module. I have tried the synchronize module >> to do the said task but however, it fails with the following error: >> \"item\", \"changed\": false, \"cmd\": \"sshpass\", \"item\":ABC.csv >> \"msg\": \"[Errno 2] No such file or directory\", \"rc\": 2}\nfailed >> >> If anyone has done something similar, can you guide us how we can >> accomplish this? Any help is appreciated. >> >> Thanks >> Shivam >> >> -- >> 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 view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/ba8c10fc-017b-4efe-8357-85aa98ba8d03n%40googlegroups.com >> <https://groups.google.com/d/msgid/ansible-project/ba8c10fc-017b-4efe-8357-85aa98ba8d03n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CA%2BuTAOgZtk8o8h%2Bg%3DqmrezsUY7WUNaFrn%2BnWFNu85Gjww0gLWA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CA%2BuTAOgZtk8o8h%2Bg%3DqmrezsUY7WUNaFrn%2BnWFNu85Gjww0gLWA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2B5G-C8p8_Dm720UvWQOtJHr4PLzAeOzNpCgw_Qa%2BS5_%3D9ywAQ%40mail.gmail.com.
