How to install Ansible in CentOS Stream version 8.

Today we're going to talk about the easier way to install and maintain Ansible inside CentOS Stream 8 using the EPEL Next repository.

I'm Luca Berton and welcome to today's episode of Ansible Pilot

How to install Ansible in CentOS Stream 8

  • use Extra Packages for Enterprise Linux (EPEL) Next additional packages for CentOS Stream

The easier way to install and maintain Ansible inside CentOS Stream version 8 is using the Extra Packages for Enterprise Linux (EPEL) Next additional repository.

This repository is maintained by the Fedora Special Interest Group and manages a high-quality set of additional packages for CentOS Stream. It's very similar to Extra Packages for Enterprise Linux (EPEL) additional packages target for Red Hat Enterprise Linux (RHEL), CentOS, Scientific Linux (SL), and Oracle Linux (OL).

## Playbook

Let's jump in a quick live Playbook of how to install Ansible in CentOS Stream version 8.

code

  • install-Ansible-CentOS-Stream8.sh

``bash

#!/bin/bash

$ sudo yum install epel-next-release

$ sudo yum install ansible

`

execution

output

``bash

cat /etc/redhat-release

CentOS Stream release 8

yum install epel-next-release

Last metadata expiration check: 0:17:42 ago on Tue 19 Oct 2021 08:38:09 AM UTC.

Dependencies resolved.

===================================================================================================

Package Architecture Version Repository Size

===================================================================================================

Installing:

epel-next-release noarch 8-11.el8 extras 11 k

Installing dependencies:

epel-release noarch 8-11.el8 extras 24 k

Transaction Summary

===================================================================================================

Install 2 Packages

Total download size: 35 k

Installed size: 38 k

Is this ok [y/N]: y

Downloading Packages:

(1/2): epel-release-8-11.el8.noarch.rpm 398 kB/s | 24 kB 00:00

(2/2): epel-next-release-8-11.el8.noarch.rpm 57 kB/s | 11 kB 00:00

---------------------------------------------------------------------------------------------------

Total 108 kB/s | 35 kB 00:00

warning: /var/cache/dnf/extras-4caecf8d6e840d19/packages/epel-next-release-8-11.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY

CentOS Stream 8 - Extras 1.6 MB/s | 1.6 kB 00:00

Importing GPG key 0x8483C65D:

Userid : "CentOS (CentOS Official Signing Key) <[email protected]>"

Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D

From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

Is this ok [y/N]: y

Key impor