I wonder how copy module works even though the concept are same. Again, if the source is part of the project then it will be visible to the playbook. If it is not you need to delegate_to the source host and provide the correct source path for the source host.
Walter -- Walter Rowe, Division Chief Infrastructure Services Division Mobile: 202.355.4123 On Dec 13, 2023, at 8:17 PM, Prady A <pradyumna....@gmail.com> wrote: Thanks a Ton Walter and dick Delegate option filnlally worked.. I wonder how copy module works even though the concept are same. Regards PD On Thu, 14 Dec 2023 at 00:24, 'Rowe, Walter P. (Fed)' via Ansible Project <ansible-project@googlegroups.com<mailto:ansible-project@googlegroups.com>> wrote: If the files to sync are part of the project that includes the playbook then it is present inside the container. If the files / folder to sync reside elsewhere, you need to delegate that task(s) to that source system where they reside that you want to sync. Walter -- Walter Rowe, Division Chief Infrastructure Services Division Mobile: 202.355.4123 On Dec 13, 2023, at 9:19 AM, Prady A <pradyumna....@gmail.com<mailto:pradyumna....@gmail.com>> wrote: Hi Dick Thank you for the directions. If I not wrong all AAP uses containers to execute the templates and this is not specific to me. I m not sure why ansible AAP provided which does not work in the out of box bundle. let me chk with RH support.. Thank a lot again.. On Wed, 13 Dec 2023 at 22:52, Dick Visser <dnmvis...@gmail.com<mailto:dnmvis...@gmail.com>> wrote: On Wed, 13 Dec 2023 at 14:43, Prady A <pradyumna....@gmail.com<mailto:pradyumna....@gmail.com>> wrote: Thank you for your direction and suggestion.. actually we want to sync http folder not a file Is there any way I can sync between 2 servers.? You can, with the synchronize module. But as explained above, your specific setup includes containers, so that needs some work. What exactly depends on your setup, if you can mount volumes, etc. Something that is known to you. IIRC the product you are using (AAP) includes support, so that would be the most logical thing to try. If you folder is not too big you can still use the copy module: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/copy_module.html#parameter-src You should experiment a bit with that. -- 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 ansible-project+unsubscr...@googlegroups.com<mailto:ansible-project+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLY%3DHLFLXFWy4W2emk4ioWJBwgWSFOFE8ORQCWNN1VzXBA%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAF8BbLY%3DHLFLXFWy4W2emk4ioWJBwgWSFOFE8ORQCWNN1VzXBA%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 ansible-project+unsubscr...@googlegroups.com<mailto:ansible-project+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEuB3ApSvRPBPz-nkSefCwuYOQL%2BQQEDomEpo3xQpAPsSmdXtg%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAEuB3ApSvRPBPz-nkSefCwuYOQL%2BQQEDomEpo3xQpAPsSmdXtg%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 ansible-project+unsubscr...@googlegroups.com<mailto:ansible-project+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/96F718E3-53E3-46AD-AD5B-9C96243C548E%40nist.gov<https://groups.google.com/d/msgid/ansible-project/96F718E3-53E3-46AD-AD5B-9C96243C548E%40nist.gov?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 ansible-project+unsubscr...@googlegroups.com<mailto:ansible-project+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEuB3ApDMLxu8iF_HLng%3DvE-pZVfuGO6vo%2BNtmA4nMdPPvaoAQ%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAEuB3ApDMLxu8iF_HLng%3DvE-pZVfuGO6vo%2BNtmA4nMdPPvaoAQ%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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7B721678-D25A-47E5-A2B0-108FF245E91A%40nist.gov.