ansible.posix
ansible.posix copied to clipboard
ansible.posix.synchronize
SUMMARY
{"ansible_loop_var": "item", "changed": false, "cmd": "/usr/bin/rsync --delay-updates -F --compress --archive --rsh='/usr/bin/ssh -S none -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' --out-format='<>%i %n%L' /opt/springboot/sxxx/xxxx.jar [email protected]:/opt/springboot/xxxxx"
Ansible 2.9 say it make change ok but not copy file
ISSUE TYPE
- Bug Report
COMPONENT NAME
synchronizer
ANSIBLE VERSION
2.9
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
rhel 8
STEPS TO REPRODUCE
- name: Copiar mismos archivos entre servidores
ansible.posix.synchronize:
src: "{{ item.0 }}"
dest: "{{ item.1 }}/"
become: true
become_user: root
delegate_to: "10.1.1.1"
with_together:
- "{{my_results_final}}"
- "{{my_results_final2}}"
EXPECTED RESULTS
ACTUAL RESULTS
maybe I need set ip host in dest?