# module\_stdout": "/bin/sh: 1: /usr/bin/python: not found\\r\\n

**URL:** <https://forum.ansible.com/t/module-stdout-bin-sh-1-usr-bin-python-not-found-r-n/23316>\
**Category:** Ansible Developer\
**Tags:** ubuntu\
**Created:** [December 22, 2016, 5:19am UTC](https://forum.ansible.com/t/module-stdout-bin-sh-1-usr-bin-python-not-found-r-n/23316 "2016-12-22T05:19:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guruprasad\_k](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@guruprasad\_k](https://forum.ansible.com/u/guruprasad_k)\
**Post date:** [December 22, 2016, 5:19am UTC](https://forum.ansible.com/t/module-stdout-bin-sh-1-usr-bin-python-not-found-r-n/23316/1 "2016-12-22T05:19:50Z")

</div>

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
