Ended up with a simple cp shell command for that host only.

Robin Kluth schrieb am Donnerstag, 24. März 2022 um 07:54:23 UTC+1:

> 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?
>
> Debug out: https://pastebin.com/0RmKanCY
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ccb876f0-dad0-4647-b23e-132343d17f77n%40googlegroups.com.

Reply via email to