I'm running ansible with the
synchronize module, which underneath runs rsync.
My problem is not ansible-related, as I took the rsync command from the debug output and ran it manually - still the same issue.
The command I ran is:
/usr/bin/rsync --delay-updates -F --rsync-path="sudo rsync" --compress --delete-after --archive "/local/path" "firstname.lastname@example.org:/remote/path" --chown=myuser:myuser
Whatever I try - I end up with the directory belonging to
I therefore now rsync successfully runs as root, so it should have all neccessary permissions. I also tried using
--usermap=*:myuser --groupmap=*:myuser - nothing.
--chmod=750 - not being applied.
In the debug output (
-vvvv), I can see my parameters again, but that's it.
No warning, no error, but also no later mention of anything containing "user", "group", "chown" etc... rsync is 3.1.1 on Debian 8.
Any help would be appreciated...