Skip to content

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.

CentOS

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

# 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 *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

x  Powerful Protection for WordPress, from Shield Security
This Site Is Protected By
Shield Security