I’m able to run an ad-hoc command that can send the ntp,conf file from source to destination server /tmp directory as my normal user id. However when I try to copy to /etc/ I get permission denied. I do have sudo rights on destination server.
I’m trying to write a playbook that will move the file with my escalated credentials and it is failing.
vi of main.yml for ntp.yml playbook: