Hi,
I am new to ansible and I have been trying to execute a python script through a task. I have tried the command, script, and shell modules, but ansible is unable to execute this script. If I try using the command module, ansible says that the script is not there even though when I ssh into the machine and use the same command, it works. I doubt that this is a permissions issue since I am using become: yes to tell ansible to execute this script as sudo. When I try to execute this script with the script and shell modules, the task fails saying that permission was denied. I have tried using become and become_user, but I still get this error message. Any suggestions?
Thanks!