Below steps tested in Centos 7 server
install the elel repo RPM.
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Install the ansible with yum command.
yum install ansible -y
From the command line run version command.
ansible --version
ansible 2.3.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]
Test with local ping
ansible localhost -m ping
localhost | SUCCESS => {
"changed": false,
"ping": "pong"
}
How to Install Ansible role
pip install git+https://github.com/larsks/ansible-toolbox
or
https://github.com/larsks/ansible-toolbox.git
cd ansible-toolbox
pip install .