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