Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu 16.04 - Install Ansible

Use either of the sections below to install ansible on your server. This is the server that should act as the "controller" of other servers. You do not need to install ansible on the "slaves" that get controlled.

Native Package System

This will install ansible version 2.0.0.2.

sudo apt update && sudo apt install ansible -y

Install from PPA

This will install ansible version 2.4.3.0

sudo apt-get install software-properties-common python-software-properties -y
sudo add-apt-repository ppa:ansible/ansible -y
sudo apt-get update && sudo apt-get install ansible -y