Hi.
I have:
- name: Copy files to BackupDMZ
ansible.posix.synchronize:
src: /opt/docusnap/*.xml
dest: /opt/docusnap_proxy/
mode: pull
rsync_opts: - “–timeout=30”
delegate_to: 172.31.10.84
which workls for all hosts except the 172.31.10.84 itself. Ansible created the following cmd for this server:
/usr/bin/rsync --delay-updates -F --compress --archive --timeout=30 --out-format=‘<>%i %n%L’ /opt/docusnap/*.xml /opt/docusnap_proxy/
Seems ok, but I get:
rsync: link_stat "/opt/docusnap/*.xml" failed: No such file or directory (2)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]\n
But when I fire this cmd myself via root on that server, all is ok. Both folders exist.
Any idea whats wrong here?
Debug out: https://pastebin.com/0RmKanCY