Ansible is a free configuration management tool, it supports managing the configurations of Unix-like and Microsoft windows systems. Ansible manages nodes over SSH or PowerShell and python to be installed on them. Ansible helps you to perform configuration, management and deployment of softwares on 100s of nodes using SSH, the entire operation can be executed by one single command ‘ansible’.
We will learn how to install Ansible on CentOS/RHEL and Ubuntu.
Unfortunately, Redhat does not provide any repostiry for Ansible. We will have to enable the epel repository to install Ansbile on CentOS/RHEL.
# CentOS 7 / RHEL 7
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Now you can install ansible using yum
yum install ansible
# Ubuntu 14.04 / 15.04
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible
You can verify the Ansible installation using the following command
$ ansible –version
The next step is to deploy using Ansible on Remote Hosts. Visit this link to know how to deploy using Ansible.