What is Ansible?

In short is an automation tool. With Ansible you can automate code deployments, server configurations, automatic updates. It can do this on one machine or hundreds of machines. The big difference between Ansible and it’s competitors is with agentless interactions. Ansible does all of it’s interaction with the machines via SSH, therefore all that it needs is a playbook and SSH credentials to a remote machine. A playbook contains all of Ansible’s configurations and tasks to be executed. A playbook is written in YAML.

Installing Ansible

Ansible is readily available in Fedora 20. However CentOS 7 and RHEL 7 users are required to install and configure the EPEL repo. For more information on installing EPEL follow my EPEL installation tutorial.

For CentOS 7, RHEL7, or Fedora 20:

For Ubuntu 14:

Make sure we have required software that might not already be installed

Add the Ansible repository

Update packages

Install Ansible itself

Verify installation

Now that we have installed Ansible we can verify that it’s installed by getting the version

If the above command returns the Ansible version, then congratulations are in order as you have successfully installed the latest version of Ansible.