If you get any problem in installing Ansible on redhat system , there are some dependencies of Ansible which require some packages in order to get install.
We require two packages Python Paramiko & sshpass links are mentioned below so download from the site and install Ansible.
In CentOs, you will not face these problem as you just need to connect to the internet which will take you to direct CentOs repository where from it will directly install Ansible in single commands.
In CentOs Case , Yum install Ansible -y
I have downloaded the required packages on System.
Python Paramiko package Download here Python Paramiko
yum install python-paramiko-2.1.1-0.4.el7.noarch.rpm -y
sshpass Package download here SSHPASS
yum install sshpass-1.05-1.el7.rf.x86_64.rpm -y
yum install ansible-126.96.36.199-1.el7.ans.noarch.rpm -y
rpm -qa ansible
Main Ansible Configuration File