How to install Ansible?

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

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
ansible 1.9.2

The next step is to deploy using Ansible on Remote Hosts. Visit this link to know how to deploy using Ansible.


Leave a Reply

Your email address will not be published. Required fields are marked *

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.