AnsiblePilot — Master Ansible Automation

AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,100 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.

Popular Topics

About Luca Berton

Luca Berton is an Ansible automation expert, author of "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example" published by Apress, and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.

How to install Ansible in Rocky Linux 8 - Ansible install — Video Tutorial

How to install and maintain up-to-date Ansible inside Rocky Linux 8 using the EPEL repository.

Watch Video

Watch "How to install Ansible in Rocky Linux 8 - Ansible install" on YouTube

What You'll Learn

Full Tutorial Content

How to install Ansible in Rocky Linux version 8. Today we're going to talk about the easier way to install and maintain Ansible inside Rocky Linux 8 using the EPEL repository. I'm Luca Berton and welcome to today's episode of Ansible Pilot. How to install Ansible in Rocky Linux 8 - use Extra Packages for Enterprise Linux (EPEL) additional packages for Enterprise Linux: Red Hat Enterprise Linux (RHEL), Rocky Linux and Scientific Linux (SL), Oracle Linux (OL) Today we're talking about How to install Ansible in Rocky Linux 8. The easier way to install and maintain Ansible inside Rocky Linux version 8 is using the Extra Packages for Enterprise Linux (EPEL) additional repository. This repository is maintained by the Fedora Special Interest Group and manages a high-quality set of additional packages for Enterprise Linux: Red Hat Enterprise Linux (RHEL), Rocky Linux and Scientific Linux (SL), Oracle Linux (OL). ## Playbook Let's jump in a quick live Playbook of how to install the latest version of Ansible in Rocky Linux. code - Install-Ansible-RockyLinux8.sh ```bash #!/bin/bash sudo dnf install epel-release sudo dnf install ansible ansible --version ``` execution ```bash $ ssh devops@rockylinux.example.com [devops@rockylinux ~]$ sudo su [root@rockylinux devops]# cat /etc/redhat-release Rocky Linux release 8.4 (Green Obsidian) [root@rockylinux devops]# dnf info ansible Rocky Linux 8 - AppStream 3.2 MB/s | 8.2 MB 00:02 Rocky Linux 8 - BaseOS 3.6 MB/s | 3.5 MB 00:00 Rocky Linux 8 - Extras 27 kB/s | 10 kB 00:00 Error: No matching Packages to list [root@rockylinux devops]# dnf install epel-release Last metadata expiration check: 0:00:12 ago on Fri 19 Nov 2021 08:56:15 AM UTC. Dependencies resolved. =================================================================================================== Package Architecture Version Repository Size =================================================================================================== Installing: epel-release noarch 8-13.el8 extras 23 k Transaction Summary =================================================================================================== Install 1 Package Total download size: 23 k Installed size: 35 k Is this ok [y/N]: y Downloading Packages: epel-release-8-13.el8.noarch.rpm 241 kB/s | 23 kB 00:00 --------------------------------------------------------------------------------------------------- Total 65 kB/s | 23 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing :

About This Tutorial

Read the full written article: How to install Ansible in Rocky Linux 8 - Ansible install

Topics Covered

Related Video Tutorials