# ansible -m ping 127.0.0.1 failed

**URL:** <https://forum.ansible.com/t/ansible-m-ping-127-0-0-1-failed/12013>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [October 22, 2012, 1:35pm UTC](https://forum.ansible.com/t/ansible-m-ping-127-0-0-1-failed/12013 "2012-10-22T13:35:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [October 22, 2012, 1:35pm UTC](https://forum.ansible.com/t/ansible-m-ping-127-0-0-1-failed/12013/1 "2012-10-22T13:35:50Z")

</div>

> How do I enable debug or more verbose logging of errors?

-v -v -v

> When running  
> $ ansible -c ssh -m ping 127.0.0.1  
> Usage: ansible \<host-pattern\> [options]

Try it like this:

ansible 127.0.0.1 -m ping -c ssh

---

<div class="post-metadata">

**Author:** ![Carlo\_Bonamico](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@Carlo\_Bonamico](https://forum.ansible.com/u/Carlo_Bonamico)\
**Post date:** [October 22, 2012, 7:37pm UTC](https://forum.ansible.com/t/ansible-m-ping-127-0-0-1-failed/12013/2 "2012-10-22T19:37:34Z")

</div>

Hi Michael,  
thanks for you prompt answer…  
I tried according to your suggestions, but obtained:

$ansible localhost -m ping -v  
Usage: ansible [options]

ansible: error: no such option: -v

ansible is latest version from github, git checkout then hacking/env-setup.

> Try it like this:
> 
> ansible 127.0.0.1 -m ping -c ssh

$ansible 127.0.0.1 -m ping -c ssh  
Usage: ansible [options]

ansible: error: option -c: invalid choice: ‘ssh’ (choose from ‘local’, ‘paramiko’)

Shell is bash, OS is Ubuntu 12.10. Python is 2.7.3.

Can you suggest if there are other dependencies to check?  
Thanks,  
Carlo

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [October 22, 2012, 7:48pm UTC](https://forum.ansible.com/t/ansible-m-ping-127-0-0-1-failed/12013/3 "2012-10-22T19:48:27Z")

</div>

You seem to be using an exceptionally dated version of Ansible if you  
don't have "-c ssh" or "-v".

0.8 is the latest released version.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [October 22, 2012, 7:49pm UTC](https://forum.ansible.com/t/ansible-m-ping-127-0-0-1-failed/12013/4 "2012-10-22T19:49:07Z")

</div>

> ansible is latest version from github, git checkout then hacking/env-setup.

It's "source ./hacking/env-setup" BTW, if you just run the script it  
will not do what you expect.

---

<div class="post-metadata">

**Author:** ![Carlo\_Bonamico](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@Carlo\_Bonamico](https://forum.ansible.com/u/Carlo_Bonamico)\
**Post date:** [October 22, 2012, 7:59pm UTC](https://forum.ansible.com/t/ansible-m-ping-127-0-0-1-failed/12013/5 "2012-10-22T19:59:53Z")

</div>

Hi Michael, thank you so much! I found an old version 0.4 in my path which had remained from some tests back in june… it is working correctly now.  
Thank you again!
