- 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 using ansible-playbook command but when I am executing it via ansible automation platform gui it is giving me the below error
Message . No file error.
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:
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…
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.
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.