FAILED => module whoami not found in configured module paths

124 views
Skip to first unread message

Raj Sharma

unread,
Apr 13, 2015, 8:12:23 AM4/13/15
to ansible...@googlegroups.com
Hi
 
I am new to ansible and trying to run simple "whoami" command on remote host and getting the error
 
ansible all -m "whoami"
 
FAILED => module whoami not found in configured module paths
 
Would appreciate if somebody help me to get this fixed.
 
Raj

Brian Coca

unread,
Apr 13, 2015, 10:35:01 AM4/13/15
to ansible...@googlegroups.com
you want:

ansible all -a "whoami"

-m sets the module, the module will be 'command' which allows you to
run commands on the remote system (set by default, that is why i
omitted the -m).


--
Brian Coca
Reply all
Reply to author
Forward
0 new messages