Re: [ansible-project] execute Synchronize module in AAP 2.3

2023-12-14 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
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 Chi

Re: [ansible-project] execute Synchronize module in AAP 2.3

2023-12-13 Thread Prady A
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> wrote: > If the files to sync are part of the

Re: [ansible-project] execute Synchronize module in AAP 2.3

2023-12-13 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
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

Re: [ansible-project] execute Synchronize module in AAP 2.3

2023-12-13 Thread Prady A
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

Re: [ansible-project] execute Synchronize module in AAP 2.3

2023-12-13 Thread Dick Visser
On Wed, 13 Dec 2023 at 14:43, Prady A 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

Re: [ansible-project] execute Synchronize module in AAP 2.3

2023-12-13 Thread Prady A
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.? Regards Prady On Wed, 13 Dec 2023 at 22:24, Dick Visser wrote: > Hii > If it really is just one file, you can use the copy module... > > -- > You receive

Re: [ansible-project] execute Synchronize module in AAP 2.3

2023-12-13 Thread Dick Visser
Hii If it really is just one file, you can use the copy module... -- 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

Re: [ansible-project] execute Synchronize module in AAP 2.3

2023-12-13 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
AAP uses execution environments which are containers. If /tmp/memo.txt is not known to the container the task will fail. Walter -- Walter Rowe, Division Chief Infrastructure Services Division Mobile: 202.355.4123 On Dec 13, 2023, at 5:56 AM, Prady A wrote: Hello experts I ve simple piece of b

[ansible-project] execute Synchronize module in AAP 2.3

2023-12-13 Thread Prady A
Hello experts I ve simple piece of below code - Name: Install rsync on the Target package: name: rsync state: present - Name: Synchronize file from local to remote synchronize: src: /tmp/memo.txt dest: /temp/test code I can run the code usin