Hello,
I created a job template in AWX and i used this playbook in Jenkins and normal CLI on Putty.
But when i run this job on AWX it is unable to find the directory inside the playbook which actually exist on server with same devops permission as the user devops.
I tested successfully on Jenkins and CLI and its able to run with devops user but AWX is giving me strange error.
ERROR while executing a task :
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
8
fatal: [server name]: FAILED! => {“changed”: false, “msg”: “Could not find or access ‘/home/devops/ansible/packages/sysprof.sh’ on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option”}
9
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
10
fatal: [server name]: FAILED! => {“changed”: false, “msg”: “Could not find or access ‘/home/devops/ansible/packages/sysprof.sh’ on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option”}
Actually using copy module .
/home/devops/ansible/packages/sysprof.sh this path exists and no issues as such.
Any other way we need to do that in AWX?
Anyone have any idea for the same