Hi folks,
I am running this Ansible which is suppose to run a script located on the specific directory but someway or somehow I am having error:
- name: Run API gateway
command: chdir=/opt/mule/api-gateway-standalone-2.2.0/bin ./gateway.sh
TASK [Run API gateway] *********************************************************
task path: /Users/fetiguegbane/Downloads/ansible/mule/tasks/api.yml:29
ESTABLISH LOCAL CONNECTION FOR USER: root
pvd-gateway EXEC /bin/sh -c ‘( umask 22 && mkdir -p “echo $HOME/.ansible/tmp/ansible-tmp-1457663853.24-23914771717278
” && echo “echo $HOME/.ansible/tmp/ansible-tmp-1457663853.24-23914771717278
” )’
pvd-gateway PUT /tmp/tmpr8CnAF TO /Users/fetiguegbane/.ansible/tmp/ansible-tmp-1457663853.24-23914771717278/command
pvd-gateway EXEC /bin/sh -c ‘LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /Users/fetiguegbane/.ansible/tmp/ansible-tmp-1457663853.24-23914771717278/command; rm -rf “/Users/fetiguegbane/.ansible/tmp/ansible-tmp-1457663853.24-23914771717278/” > /dev/null 2>&1’
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
File “/Users/fetiguegbane/.ansible/tmp/ansible-tmp-1457663853.24-23914771717278/command”, line 2409, in
main()
File “/Users/fetiguegbane/.ansible/tmp/ansible-tmp-1457663853.24-23914771717278/command”, line 187, in main
os.chdir(chdir)
OSError: [Errno 2] No such file or directory: ‘/opt/mule/api-gateway-standalone-2.2.0/bin’
fatal: [pvd-gateway]: FAILED! => {“changed”: false, “failed”: true, “invocation”: {“module_name”: “command”}, “parsed”: false}