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
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
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
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
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
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
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
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
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