usr/bin/which: no ansible in (/sbin:/bin:/usr/sbin:/usr/bin)

I followed the installation doc from : http://docs.ansible.com/ansible/latest/intro_installation.html
But I get the error “usr/bin/which: no ansible in (/sbin:/bin:/usr/sbin:/usr/bin)” ?

That site lists a lot of different OSes to install the control machine.
Which one are you using, what version, etc?

Hi
I am trying to install it in RHEL7 and new ansible

With the new version of RHEL 7.4 released today, ansible is in Extra
Channel.... Perhaps easier to install for you

Regards,

JYL

try below commands to install ansible on redhat 7

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install ansible