Hi there,
I haven’ been able to figure out how to use synchronize
with local sudo, so I used a shell command: local_action: shell sudo rsync -aL --rsync-path="sudo rsync" -e "ssh -i {{ ansible_user_dir }}/.ssh/id_rsa" SRC DEST
While this works fine, I receive a message: [WARNING]: Consider using 'become', 'become_method', and 'become_user' rather than running sudo
What is the proper way to do a sudo rsync SRC DEST
? If I am already doing it properly, how can I suppress the warning?
Thanks,
Jayen