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 <[email protected]> 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 
<[email protected]<mailto:[email protected]>> wrote:


On Wed, 13 Dec 2023 at 14:43, Prady A 
<[email protected]<mailto:[email protected]>> 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 
[email protected]<mailto:[email protected]>.
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 
[email protected]<mailto:[email protected]>.
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/96F718E3-53E3-46AD-AD5B-9C96243C548E%40nist.gov.

Reply via email to