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.
Install Ansible on AlmaLinux 8 Easily with EPEL — Video Tutorial
Learn how to install and maintain Ansible on AlmaLinux 8 using the EPEL repository. Follow this simple guide to set up Ansible efficiently on your system.
What You'll Learn
- How to install Ansible in AlmaLinux version 8.
- How to install Ansible in AlmaLinux 8
- Links
- code
- execution
- before execution
- after execution
- Conclusion
- Related Articles
Full Tutorial Content
How to install Ansible in AlmaLinux version 8.
Today we're going to talk about the easier way to install and maintain Ansible inside AlmaLinux 8 using the EPEL repository.
I'm Luca Berton and welcome to today's episode of Ansible Pilot.
How to install Ansible in AlmaLinux 8
- use Extra Packages for Enterprise Linux (EPEL) additional packages for Enterprise Linux: Red Hat Enterprise Linux (RHEL), AlmaLinux and Scientific Linux (SL), Oracle Linux (OL)
Today we're talking about how to install Ansible in AlmaLinux 8.
The easier way to install and maintain Ansible inside AlmaLinux 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), AlmaLinux and Scientific Linux (SL), Oracle Linux (OL).
Links
- [AlmaLinux website](https://almalinux.org/)
- [AlmaLinux wiki EPEL](https://wiki.almalinux.org/repos/Extras.html)
## Playbook
Install latest Ansible release in AlmaLinux 8.
code
- Install-Ansible-AlmaLinux8.sh
```bash
#!/bin/bash
sudo yum install epel-release
sudo yum install ansible
```
execution
```bash
$ ssh devops@almalinux.example.com
[devops@almalinux ~]$ sudo su
[root@almalinux devops]# cat /etc/redhat-release
AlmaLinux release 8.5 (Arctic Sphynx)
[root@almalinux devops]# cat /etc/os-release
NAME="AlmaLinux"
VERSION="8.5 (Arctic Sphynx)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.5 (Arctic Sphynx)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.5"
[root@almalinux devops]# hostnamectl
Static hostname: almalinux.example.com
Icon name: computer-vm
Chassis: vm
Machine ID: 2125d84a5a894596a126819adab153e8
Boot ID: 6a16f6345f3442e78a3c4814e24f479c
Virtualization: oracle
Operating System: AlmaLinux 8.5 (Arctic Sphynx)
CPE OS Name: cpe:/o:almalinux:almalinux:8::baseos
Kernel: Linux 4.18.0-348.2.1.el8_5.x86_64
Architecture: x86-64
[root@almalinux devops]# uname -a
Linux almalinux.example.com 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 x86_64 x86_64 GNU/Linux
[root@almalinux devops]# dnf install epel-release
Last metadata expiration check: 0:50:44 ago on Tue 07 Dec 2021 09:26:05 AM UTC.
Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
epel-release noarch
About This Tutorial
- Author: Luca Berton
- Difficulty: Beginner
- Read time: 9 min
- Category: installation
Read the full written article: Install Ansible on AlmaLinux 8 Easily with EPEL