'Synchronize failed to set permission error
I am using below task to rsync a directory from source to destination (destination is NFS).
- synchronize:
src: "{{ src_dir }}/cc"
dest: "{{ dest_dir }}"
archive: yes
My playbook command is
sudo ansible-playbook --connection=local -i hosts roles/role_name/tasks/main.yml
Error:
rsync failed to permission on /aa/bb/cc : Permission denied (13) \nrsync: failed to set permission on /aa/bb/c.txt
NFS directory '/aa/bb/cc' is owned by user 'abc' and I am executing playbook with sudo. I do not have any problem running playbook while I was logged in as 'abc'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
