# ansible all -a "/bin/echo hello"   unable to run command

**URL:** <https://forum.ansible.com/t/ansible-all-a-bin-echo-hello-unable-to-run-command/29857>\
**Category:** Ansible Developer\
**Created:** [March 9, 2019, 11:25am UTC](https://forum.ansible.com/t/ansible-all-a-bin-echo-hello-unable-to-run-command/29857 "2019-03-09T11:25:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajendar\_t](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rajendar\_t](https://forum.ansible.com/u/rajendar_t)\
**Post date:** [March 9, 2019, 11:25am UTC](https://forum.ansible.com/t/ansible-all-a-bin-echo-hello-unable-to-run-command/29857/1 "2019-03-09T11:25:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tchia04](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Tchia04](https://forum.ansible.com/u/Tchia04)\
**Post date:** [March 10, 2019, 5:48pm UTC](https://forum.ansible.com/t/ansible-all-a-bin-echo-hello-unable-to-run-command/29857/2 "2019-03-10T17:48:45Z")

</div>

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
