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

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

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