I’m having trouble executing my script from a user with sudo access instead of root.
I’m getting “permission denied” errors when playing the playbook, but if I execute the commands manually on the server it works just fine.
I did use “become” to execute the tasks with sudo and the right user.
The (relevant part of the) playbook :