module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n

Hi,

Using Ubuntu 16.04,python 2.7,ansible 2.2.0.0

ansible-playbook -i hostname install.yml -vvv
Using /etc/ansible/ansible.cfg as config file

PLAYBOOK: install.yml **********************************************************
1 plays in install.yml

PLAY [install awscli] **********************************************************

TASK [setup] *******************************************************************
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/system/setup.py
<35.166.197.222> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<35.166.197.222> 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/guru/.ansible/cp/ansible-ssh-%h-%p-%r 35.166.197.222 ‘/bin/sh -c ‘"’"’( umask 77 && mkdir -p “echo $HOME/.ansible/tmp/ansible-tmp-1482383831.42-86147983121928” && echo ansible-tmp-1482383831.42-86147983121928=“echo $HOME/.ansible/tmp/ansible-tmp-1482383831.42-86147983121928” ) && sleep 0’“'”‘’
<35.166.197.222> PUT /tmp/tmp8G69vQ TO /home/ubuntu/.ansible/tmp/ansible-tmp-1482383831.42-86147983121928/setup.py
<35.166.197.222> SSH: EXEC sftp -b - -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/guru/.ansible/cp/ansible-ssh-%h-%p-%r ‘[35.166.197.222]’
<35.166.197.222> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<35.166.197.222> 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/guru/.ansible/cp/ansible-ssh-%h-%p-%r 35.166.197.222 ‘/bin/sh -c ‘"’“‘chmod u+x /home/ubuntu/.ansible/tmp/ansible-tmp-1482383831.42-86147983121928/ /home/ubuntu/.ansible/tmp/ansible-tmp-1482383831.42-86147983121928/setup.py && sleep 0’”’“‘’
<35.166.197.222> ESTABLISH SSH CONNECTION FOR USER: ubuntu
<35.166.197.222> 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/guru/.ansible/cp/ansible-ssh-%h-%p-%r -tt 35.166.197.222 '/bin/sh -c '”‘“'sudo -H -S -n -u root /bin/sh -c '”’“'”‘"’“'”‘"’“‘echo BECOME-SUCCESS-yyrjutjuxbmkatwdjjtlnnvcybbfpebv; /usr/bin/python /home/ubuntu/.ansible/tmp/ansible-tmp-1482383831.42-86147983121928/setup.py; rm -rf “/home/ubuntu/.ansible/tmp/ansible-tmp-1482383831.42-86147983121928/” > /dev/null 2>&1’”‘"’“'”‘"’“'”‘"’ && sleep 0’“'”‘’
fatal: [35.166.197.222]: FAILED! => {
“changed”: false,
“failed”: true,
“invocation”: {
“module_name”: “setup”
},
“module_stderr”: “Shared connection to 35.166.197.222 closed.\r\n”,
“module_stdout”: “/bin/sh: 1: /usr/bin/python: not found\r\n”,
“msg”: “MODULE FAILURE”
}
to retry, use: --limit @/home/guru/ansible/install.retry

PLAY RECAP *********************************************************************
35.166.197.222 : ok=0 changed=0 unreachable=0 failed=1