ansible,

How to install Ansible on Rocky Linux 8

Jul 11, 2021 · 1 min read · Post a comment
How to install Ansible on Rocky Linux 8

If there is a need to simplify the deployments of your applications, manage your infrastructure servers, etc.. you can achieve it with ansible which is one of the most popular tool for managing CI/CD tools.

Install Ansible on Rocky Linux

Step 1. Execute the system update command:

sudo dnf update

Step 2. To enable EPEL repository run:

sudo dnf install epel-release

Step 3. Install Ansible:

sudo dnf install ansible

Step 4. Verify the installation:

ansible --version

Output:

ansible 2.9.23
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.6/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.6.8 (default, May 19 2021, 03:00:47) [GCC 8.4.1 20200928 (Red Hat 8.4.1-1)]

Uninstall Ansible on Rocky Linux

Step 1. If you decide to remove ansible on Rocky Linux execute:

dnf remove ansible

Conclusion

This tutorial shows you how to install the latest ansible version on Rocky Linux 8, and if you decide to use other automation tool instead of ansible there is a section on how to remove it depending on your needs. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on telegram.