How to Install Ansible on Ubuntu 16.04

 

events_scm_ansible_logo

In this tutorial we will show you how to install ansible and ansible playbook on Ubuntu 16.04. This turorial will show how to install Ansbile version 2 from official ubuntu repositories. Ansible is very usefull tools for System administrator , devOps , and also Programmer. Ansible has over 200 new modules.

For you dont know Ansible, Ansible is a radically simple IT automation engine that automates cloud provisioning, configuration management, application deployment, intra-service orchestration, and many other IT needs. Ansible uses a very simple language (YAML, in the form of Ansible Playbooks) that allow you to describe your automation jobs in a way that approaches plain English. Using Ansible you can control multi server or device at once using single command. You don’t need install client in each server or device.

Ansible version 2 comes with these new feature:

  • Greatly expanded support for configuring and managing VMware environments

  • Expanded support for managing Microsoft Windows environments

  • A completely new set of modules for managing OpenStack, the leading open source cloud computing framework, developed in concert with the OpenStack community
  • Substantial improvements to the Docker module and new Docker connection plugin

  • 30 new modules for improving and expanding the support for Amazon Web Services

Prerequisites

Before you begin with this guide, you should at least have basic knowledge of linux, know basic shell command for linux, root user or non-root user account with sudo privileges set up on your server.

Step 1 – Ansible Installation

To begin install ansible on ubuntu 16.04 you need to run these command below

Check installation was successfull by using these command.

And here the output

Step 2 – Ansible Configuration

To begin using ansible we need to configure ansible to disable host key check. We need disable it because to prevent host key prompt when we try to connect in new server.

Edit ansible config file using nano

At “[defaults]” section find these line and uncomment

Change or uncomment like these

Congratulation , you have been successfully install and configure ansible on ubuntu 16.04 , to begin using ansible we recommend you to visit ansible example page

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *