Loading...

Watch: How to install Ansible in Oracle Linux 8 - Ansible install

Learn how to install the latest Ansible release on Oracle Linux 8 using the oracle-epel-release-el8 repository with a simple script.

How to install Ansible in Oracle Linux version 8. Today we're going to talk about the easier way to install and maintain Ansible inside Oracle Linux 8 using the EPEL repository. I'm Luca Berton and welcome to today's episode of Ansible Pilot.

How to install Ansible in Oracle Linux 8

  • use Extra Packages for Enterprise Linux (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 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), Alma Linux, Rocky Linux and Scientific Linux (SL), Oracle Linux (OL).

Links

  • [Oracle Linux 8](https://www.oracle.com/linux/)

## Playbook

Install latest Ansible release in Oracle Linux 8.

code

  • Install-Ansible-OracleLinux8.sh

``bash

#!/bin/bash

sudo yum install oracle-epel-release-el8

sudo yum install ansible

`

execution

``bash

$ ssh [email protected]

Welcome to Oracle Linux Server release 8.5 (GNU/Linux 5.4.17-2136.300.7.el8uek.x86_64)

The Oracle Linux End-User License Agreement can be viewed here:

* /usr/share/eula/eula.en_US

For additional packages, updates, documentation and community help, see:

* https://yum.oracle.com/

Last login: Fri Jan 21 09:09:29 2022 from 192.168.0.101

[devops@demo ~]$ sudo su

[root@demo devops]# cat /etc/redhat-release

Red Hat Enterprise Linux release 8.5 (Ootpa)

[root@demo devops]# cat /etc/os-release

NAME="Oracle Linux Server"

VERSION="8.5"

ID="ol"

ID_LIKE="fedora"

VARIANT="Server"

VARIANT_ID="server"

VERSION_ID="8.5"

PLATFORM_ID="platform:el8"

PRETTY_NAME="Oracle Linux Server 8.5"

ANSI_COLOR="0;31"

CPE_NAME="cpe:/o:oracle:linux:8:5:server"

HOME_URL="https://linux.oracle.com/"

BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"

ORACLE_BUGZILLA_PRODUCT_VERSION=8.5

ORACLE_SUPPORT_PRODUCT="Oracle Linux"

ORACLE_SUPPORT_PRODUCT_VERSION=8.5

[root@demo devops]# hostnamectl

Static hostname: demo.example.com

Icon name: computer-vm

Chassis: vm

Machine ID: b6a0872df74a4344931618a6b39ff738

Boot ID: be88c593add3426a996483719c7c6a47

Virtualization: oracle

Operating S

Read the full tutorial: How to install Ansible in Oracle Linux 8 - Ansible install