- 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/testcmd": "/usr/bin/rsync --delay-updates -F --compress --archive --rsh='/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' --out-format='<<CHANGED>>%i %n%L' /tmp/memo.txt root@xyz1234:/tmp/test", "msg": "Warning: Permanently added 'xyz1234,148.168.65.73' (ECDSA) to the list of known hosts.\r\nWARNING!\n This system, owned by the Company, may be used only by authorized personnel for authorized purposes. All activities conducted on and communications and other information, including personal information, accessed, processed, stored, or transmitted using the system may be examined, recorded, copied, used and disclosed in accordance with applicable law. The Company monitors systems to safeguard the security of its systems and data, to protect against policy violations and unlawful activity, to administer working relationships, and to meet legal obligations and promises to business partners. By proceeding, you agree to use the system only for authorized purposes and in accordance with Company policies that have been made available to you. For additional information consult your local business's employee privacy notice or contact your local Privacy Officer.\nrsync: link_stat \"/tmp/memo.txt\" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]\n",
Though I kept /tmp/memo.txt in both control node and execution node still the error persist. Kindly suggest
Thanks
pd
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEuB3AqOxr3AbQ9k-vgCdJtgmLTm3ZvKBBD645mNW-F9F_p%2BeQ%40mail.gmail.com.
HiiIf 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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLbFb3hmdr%2BCgycF3bwX9xyK3LmZsBXcOrOgRn8jS_rNCg%40mail.gmail.com.
Thank you for your direction and suggestion..actually we want to sync http folder not a fileIs there any way I can sync between 2 servers.?
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLY%3DHLFLXFWy4W2emk4ioWJBwgWSFOFE8ORQCWNN1VzXBA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEuB3ApSvRPBPz-nkSefCwuYOQL%2BQQEDomEpo3xQpAPsSmdXtg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/96F718E3-53E3-46AD-AD5B-9C96243C548E%40nist.gov.
I wonder how copy module works even though the concept are same.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEuB3ApDMLxu8iF_HLng%3DvE-pZVfuGO6vo%2BNtmA4nMdPPvaoAQ%40mail.gmail.com.