Linux

How To Install Ansible On Linux

How To Install Ansible On Linux

Insight: How To Install Ansible On Linux

Ansible is a IT automation tool from RedHat. It help you to deploy apps. It is an open source tool which help you to automates software provisioning, configuration management, and application deployment. Ansible connects via SSH, remote PowerShell or via other remote APIs.

In this article, we are going to show you the method to install Ansible On Linux based distribution.

How To Install Ansible On Linux

Install Ansible On CentOS/Red Hat/Fedora etc

In order to install Ansible on CentOs or related Os then you need to run the following command. Meanwhile, you should install EPEL or Extra Packages for Enterprise Linux in CentOs, RedHat, Fedora, SUSE before installing Ansible.

sudo yum install epel-release

Then you can easily install Ansible using this command:

sudo yum install ansible

After installing ansible, you can check the version of ansible installed in your system with the following command.

ansible --version

How To Uninstall Ansible From CentOS

Run the following command to remove ansible.

sudo yum remove ansible -y

Meanwhile, If you are an Ubuntu user then follow the following steps to install ansible on Ubuntu and derivatives.

Install Ansible On Ubuntu And Debian Linux

Open your terminal and run the following command to install Ansible on Ubuntu and other debian based Linux.

sudo apt-add-repository ppa:ansible/ansible
sudo apt update
sudo apt install ansible

How To Uninstall Ansible From Ubuntu/Debian

Run the following command to uninstall or remove ansible from Ubuntu:

sudo apt remove ansible

Meanwhile, If you want to completely remove the Ansible from the system along with it’s configuration and dependencies then run the following command

sudo apt purge ansible

 

READ THIS ALSO  Full Support For WSL : Windows 10 Fall Creators Update

Let us know if there is any error or confusion in this article. We would love to make changes or improve this article on how to install Ansible on Linux



Subscribe To Our Newsletter.

Join our mailing list to receive the latest linux tutorials, tips & tricks, freebies,news and updates from our team.

You have Successfully Subscribed!