ansible.posix icon indicating copy to clipboard operation
ansible.posix copied to clipboard

ansible.posix.synchronize

Open jesulo opened this issue 2 years ago • 1 comments

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

jesulo avatar May 12 '22 11:05 jesulo

maybe I need set ip host in dest?

jesulo avatar May 12 '22 15:05 jesulo