synchronize: link_stat failed

28 views
Skip to first unread message

Robin Kluth

unread,
Mar 24, 2022, 2:54:23 AM3/24/22
to Ansible Project
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='<<CHANGED>>%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?

Robin Kluth

unread,
Mar 24, 2022, 9:07:42 AM3/24/22
to Ansible Project
Ended up with a simple cp shell command for that host only.
Reply all
Reply to author
Forward
0 new messages