habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Ansible Ubuntu 20.04

1 min read

Introduction

Ansible is an open-source automation tool that simplifies configuration management, application deployment, and task automation. It is designed to be simple, lightweight, and easy to use, making it a popular choice for IT professionals and DevOps teams.

Ansible uses a declarative language to describe the desired state of a system, and it automates the process of bringing systems to that state.

Key features of Ansible include:

  1. Agentless: Ansible doesn’t require any agent to be installed on managed nodes. It uses SSH (Secure Shell) for communication, making it easy to set up and manage.
  2. Declarative Language: Ansible uses YAML (YAML Ain’t Markup Language) for its playbooks, which are files where you define tasks and the desired state of the system. YAML is human-readable and easy to understand.
  3. Idempotent: Ansible is designed to be idempotent, meaning that the result of applying a configuration is the same regardless of how many times it is applied. This ensures consistency in system states.
  4. Extensible: Ansible is extensible and supports the creation of custom modules, allowing users to automate a wide range of tasks and integrate with various systems and services.
  5. Versatile: Ansible can be used for a variety of automation tasks, including server provisioning, configuration management, application deployment, continuous delivery, and more.
  6. Community and Ecosystem: Ansible has a large and active community, and there is a rich ecosystem of modules and roles contributed by the community. This makes it easy to find and reuse automation solutions.

How to Install Ansible Ubuntu 20.04

Via APT GET

To install Ansible on Ubuntu, you can use the package manager apt. Here are the steps:

  1. Update the package list to make sure you have the latest information about available packages:
sudo apt update
  1. Install Ansible:
sudo apt install ansible
  1. After the installation is complete, you can check the version of Ansible to verify that it was installed successfully:
ansible --version
Ansible Version

This should display information about the installed version of Ansible.

Via Repository

Installing Ansible via the official Ansible repository can provide you with the latest version of Ansible. Here’s how you can do it:

  1. Add the Ansible repository:
sudo apt update 
sudo apt install software-properties-common 
sudo apt-add-repository --yes --update ppa:ansible/ansible
  1. Install Ansible:
sudo apt install ansible
  1. Verify the installation:
ansible --version

This will display information about the installed version of Ansible.

Using the official Ansible PPA ensures that you have access to the latest stable release. Remember to replace sudo with the appropriate command if you don’t have sudo privileges.

That’s it! You’ve now installed Ansible via the official repository on your Ubuntu system.

habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Leave a Reply

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

Never miss good article from us, get weekly updates in your inbox