How to install Ansible in CentOS version 8.
Today we're going to talk about the easier way to install and maintain Ansible inside CentOS 8 using the EPEL repository.
I'm Luca Berton and welcome to today's episode of Ansible Pilot.
How to install Ansible in CentOS 8
- use Extra Packages for [Enterprise Linux (EPEL)](https://docs.fedoraproject.org/en-US/epel/) additional packages for Enterprise Linux: Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL)
Today we're talking about How to install Ansible in CentOS 8.
The easier way to install and maintain Ansible inside CentOS 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), CentOS and Scientific Linux (SL), Oracle Linux (OL).
## Playbook
Let's jump in a quick live Playbook of how to install the latest and a specific version of Ansible in CentOS.
code
- install_ansible_EPEL.sh
``bash
#!/bin/bash
sudo yum install epel-release
sudo yum install ansible
`
execution
output
``bash
yum install epel-release
Last metadata expiration check: 0:00:59 ago on Mon 18 Oct 2021 01:41:22 PM UTC.
Package epel-release-8-11.el8.noarch is already installed.
Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Upgrading:
epel-release noarch 8-13.el8 epel 23 k
Transaction Summary
===================================================================================================
Upgrade 1 Package
Total download size: 23 k
Is this ok [y/N]: y
Downloading Packages:
epel-release-8-13.el8.noarch.rpm 363 kB/s | 23 kB 00:00
---------------------------------------------------------------------------------------------------
Total 39 kB/s | 23 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing :