On 24.09.2018 20:46, Dylan Martin wrote:
I assume I broke a config somewhere because this makes no sense:
$ ansible -vvv '*' -i hosts.isp-east-stage -M raw -a 'whoami' -u ubuntu
-l
X.X.X.X
You need to use lower case -m, uppercase -M is module path.
ansible 2.5.1
config file = /home/dmartin/.ansible.cfg
configured module search path =
[u'/home/dmartin/.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.15rc1 (default, Apr 15 2018, 21:51:34) [GCC
7.3.0]
Using /home/dmartin/.ansible.cfg as config file
Parsed /home/dmartin/kafka-norancher/hosts.isp-east-stage inventory
source
with ini plugin
META: ran handlers
Using module file
/usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
<X.X.X.X> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<X.X.X.X> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s
-o
StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o User=ubuntu -o ConnectTimeout=10 -o
ControlPath=/home/dmartin/.ansible/cp/5a5de34988 X.X.X.X '/bin/sh -c
'"'"'/usr/bin/python && sleep 0'"'"''
<X.X.X.X> (127, '', '/bin/sh: 1: /usr/bin/python: not found\n')
X.X.X.X | FAILED! => {
"changed": false,
"module_stderr": "/bin/sh: 1: /usr/bin/python: not found\n",
"module_stdout": "",
"msg": "MODULE FAILURE",
"rc": 127
}
Any idea what's going on?
Since the default module is command this make sense.
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/12ddc03955151960d8b4b7cd5ca5b336%40olstad.com.
For more options, visit https://groups.google.com/d/optout.