Loading...

Watch: Install Ansible on AlmaLinux 8 Easily with EPEL

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.

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 [email protected]

[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

Read the full tutorial: Install Ansible on AlmaLinux 8 Easily with EPEL