Re: [ansible-project] ansible -m ping 127.0.0.1 failed

414 views
Skip to first unread message

Michael DeHaan

unread,
Oct 22, 2012, 9:35:50 AM10/22/12
to ansible...@googlegroups.com
> 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

Carlo Bonamico

unread,
Oct 22, 2012, 3:37:34 PM10/22/12
to ansible...@googlegroups.com
Hi Michael, 
 thanks for you prompt answer...
I tried according to your suggestions, but obtained: 

$ansible localhost -m ping -v
Usage: ansible <host-pattern> [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 <host-pattern> [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



 

Michael DeHaan

unread,
Oct 22, 2012, 3:48:27 PM10/22/12
to ansible...@googlegroups.com
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.

Michael DeHaan

unread,
Oct 22, 2012, 3:49:07 PM10/22/12
to ansible...@googlegroups.com
> 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.

Carlo Bonamico

unread,
Oct 22, 2012, 3:59:53 PM10/22/12
to ansible...@googlegroups.com
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!
Reply all
Reply to author
Forward
0 new messages