Installation of Ansible on Ubuntu 14.04
Install required package
Follow the below command to install required packages.
sudo apt-get install software-properties-common -y
Add ppa
This command will add ppa
sudo apt-add-repository ppa:ansible/ansible
Running Update
To update it follow the given command
sudo apt-get update
Installing ansible
To install ansible ,this command is being used.
sudo apt-get install ansible -y
Installation of ansible is done . 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.