On trying to rsync a fuse-mounted dir as root, we get an error:
sync: [sender] link_stat "path/to/dir" failed: Permission denied (13)
This is e.g. the case with apps using fuse, like Cryptomator.
fuse does not allow root access by default. See e.g. here.
Use rsync as the owner user on source.
When using Ansible module ansible.posix.synchronize, use become: false for the task which rsyncs the fuse-mounted dir.
Alternatively, add custom flags on mounting (see e.g. Cryptomator docs).
Docs for ansible.posix.synchronize say:
The user and permissions for the synchronize
srcare those of the user running the Ansible task on the local host (or the remote_user for adelegate_tohost whendelegate_tois used).
However, this seems not to work like that here: rsync with this module in Ansible works when setting become is false, and does not work otherwise (which it should according to the quote).