# Simple ansible command told invalid output was

**URL:** <https://forum.ansible.com/t/simple-ansible-command-told-invalid-output-was/17259>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [January 14, 2015, 6:51am UTC](https://forum.ansible.com/t/simple-ansible-command-told-invalid-output-was/17259 "2015-01-14T06:51:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![linbo\_liao](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@linbo\_liao](https://forum.ansible.com/u/linbo_liao)\
**Post date:** [January 14, 2015, 6:51am UTC](https://forum.ansible.com/t/simple-ansible-command-told-invalid-output-was/17259/1 "2015-01-14T06:51:57Z")

</div>

Hi,

My server configure no pass ssh login, today when execute ansible command it failed stranged. But I manually execute ssh comand it works, how can I check this issue?

Server: Ubuntu 12.04.4 LTS x86  
Python: 2.7.3  
Ansible: 1.7.1

`  
$ ansible remote-host -i inventory -m shell -a “pwd”  
remote-host | FAILED \>\> {  
“failed”: true,  
“msg”: " File "/home/icc/.ansible/tmp/ansible-tmp-1421217087.5-245102095938646/command", line 117\r\n \r\n ^\r\nIndentationError: expected an indented block\r\n",  
“parsed”: false  
}

`

enable debug info, show

`  
GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
 ESTABLISH CONNECTION FOR USER: icc  
 REMOTE\_MODULE setup  
 EXEC [‘ssh’, ‘-C’, ‘-tt’, ‘-vvv’, ‘-o’, ‘StrictHostKeyChecking=no’, ‘-o’, ‘PasswordAuthentication=yes’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘ConnectTimeout=10’, ‘remote-host’, “/bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-tmp-1421218002.78- 57926925100892 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1421218002.78-57926925100892 && echo $HOME/.ansible/tmp/ansible-tmp-1421218002.78- 57926925100892’”]  
 PUT /tmp/tmpPIExuz TO /home/icc/.ansible/tmp/ansible-tmp-1421218002.78-57926925100892/setup  
 EXEC [‘ssh’, ‘-C’, ‘-tt’, ‘-vvv’, ‘-o’, ‘StrictHostKeyChecking=no’, ‘-o’, ‘PasswordAuthentication=yes’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘ConnectTimeout=10’, ‘remote-host’, u"/bin/sh -c ‘LANG=en\_US.UTF-8 LC\_CTYPE=en\_US.UTF-8 /usr/bin/python /home/ icc/.ansible/tmp/ansible-tmp-1421218002.78-57926925100892/setup; rm -rf /home/icc/.ansible/tmp/ansible-tmp-1421218002.78-57926925100892/ \>/dev/ null 2\>&1’"]  
failed: [remote-host] =\> {“failed”: true, “parsed”: false}  
invalid output was: File “/home/icc/.ansible/tmp/ansible-tmp-1421218002.78-57926925100892/setup”, line 107^M  
^M  
^^M  
IndentationError: expected an indented block^M  
OpenSSH\_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012  
debug1: Reading configuration data /etc/ssh/ssh\_config^M  
debug1: /etc/ssh/ssh\_config line 19: Applying options for \*^M

`

Thanks,  
Linbo
