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