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
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
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
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.
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.
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!