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
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?
Oh, I’m trying to install python on some ubuntu instances in AWS.
Thanks!
-Dylan