How to install and configure Ansible on Ubuntu 22.04

Ansible is an automation tool that can be used to configure, deploy, and manage IT systems. It is agent less, which means that it does not require any package to be installed on the managed systems. Ansible uses a simple, explanatory language to define the desired state of the system. This makes it easy to simple and use, and it is a good choice for both beginners and experienced IT professionals. Here is a step-by-step guide on how to install and configure Ansible on Ubuntu . 


  • Running Ubuntu 22.04.
  • sudo privileges on your server to user account

Step 1: Update the package

The first step is to update the package index on your server. This will ensure that you have the latest versions of all the packages that  depends on.

# sudo apt update

Step 2: Install Ansible

Once the package index is updated, you can install  using the following command

# sudo apt install ansible

Step 3: Verify Version

Below command will check the version with other configuration and module path.

# ansible --version

You can also refer our latest post regarding ansible navigator .

About Sachin G

I am a professional freelance contributor and founder of tech transit. Love to write and lover of education, culture, and community. I have been using it, setting, supporting, and maintaining it since 2009.Linux rocks!