I'm trying to run a nodejs script from ansible-playbook from AWX. the command works fine in regular cli, but when I run it from the playbook it fails!
ansible version:
ansible 2.5.1
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.15+ (default, Nov 27 2018, 23:36:35) [GCC 7.3.0]
here's the latest trail of the playbook:
---
- name: create a new domain in Digital Ocean.
hosts: localhost
connection: local
tasks:
- name: create a new domain in Digital Ocean.
shell: "/var/lib/awx/projects/MY_USERNAME/modules/new-domain.js --name={{client_url|quote}} --ip={{server_ip|quote}}"
args:
executable: /usr/bin/node
thank you