Do you have the output from the "command not found"? 
Is the "command not found" inside the ansible output or is it complaining 
that ansible cannot be found? 

Try adding -vvvv to the ansible command to get more output


Make sure the echo command is under the /bin path 


On Saturday, March 9, 2019 at 3:25:56 AM UTC-8, rajendar t wrote:
>
> Hi All,
> I am successfully configured ansible in my laptop I am new to the ansible 
>
> when I run ansible all -a "/bin/echo hello" command I am getting 
> command not found error 
>
> can you please explain the reason ??
>
>
> rajendar@HP-EliteBook:~$ ansible --version
> ansible 2.5.1
>   config file = /etc/ansible/ansible.cfg
>
>
> ajendar@HP-EliteBook:~$ ansible all -m ping
> [DEPRECATION WARNING]: DEFAULT_SUDO_USER option, In favor of Ansible 
> Become, which is a generic framework. See become_user. , use become 
> instead. This feature will be 
> removed in version 2.8. Deprecation warnings can be disabled by setting 
> deprecation_warnings=False in ansible.cfg.
> 192.168.99.100 | SUCCESS => {
>     "changed": false, 
>     "ping": "pong"
>
>
> Thanks
> Rajendar
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to