ansible --ask-pass all -m ping
82.137.158.111 | success >> {
"changed": false,
"ping": "pong"
}ansible --ask-pass all -m "/bin/echo hello"ends in :
82.137.158.111 | FAILED => module /bin/echo hello not found in configured module paths
Where 82.137.158.111 (Ip changed) is an Ubuntu 12.04 Server.
What am I doing wrong?
– Anatol
You need to specify -i for that hosts txt file - do a --help to understand the switch.
export ANSIBLE_HOSTS=/path/to/file
do there to test was -a - which is switches to a given module. If you don't specificy a module with -m it will default to the 'command' module.
ansible all -a "/bin/echo hello"Doing the job … so far so good. Let´s dive into the docu!
Thanks again!