Thursday, 29 October 2015

Ansible Installation on Ubuntu 14.04

Ansible is a configuration management tool build in python. It is really easy to get started with and to get the work done easily. Let's install it on Ubuntu 14.04.

Install required package
sudo apt-get install software-properties-common -y

Add ppa
sudo apt-add-repository ppa:ansible/ansible

Running Update
sudo apt-get update

Installing ansible
sudo apt-get install ansible -y

Now we are done installing ansible. AWS API access requires a python library named Boto to be installed on the master ansible machine. Run the following command to install Boto.

Installing Boto
sudo apt-get install python-boto


You are done with ansible and boto installation. To install it in a single shot, make a bash script, give it executable permission and just run the script.

Make the script file
touch ansible_installation.sh

Copy and paste the following content to the file we just created

#! /bin/bash
echo "Installing software-properties-commaon..."
sudo apt-get install software-properties-common -y
echo "Adding ppa for anisble..."
sudo apt-add-repository ppa:ansible/ansible
echo "Running update..."
sudo apt-get update
echo "Installing ansible..."
sudo apt-get install ansible -y
echo "Ansbile is ready to use..."
echo "Installing boto..."
sudo apt-get install python-boto

Give the script executable permission
sudo chmod +x ansible_installation.sh

Run the script by the following command
./ansible_installation.sh

You are done with the installation. To check if the ansible is installed just type "ansible" in your terminal and hit enter.

1 comments:

 

Copyright @ 2013 Appychip.

Designed by Appychip & YouTube Channel