Loading...

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

Learn how to easily install and maintain Ansible on Oracle Linux 9 using the ansible-core package from the AppStream repository with this straightforward guide.

How to install Ansible in OracleLinux version 9.

Today we’re going to talk about the easier way to install and maintain Ansible inside OracleLinux 9 using the appstream system repository.

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

How to install Ansible in OracleLinux 9

  • ansible-core included in AppStream repository
  • ansible package not available

Today we’re talking about How to install Ansible in OracleLinux 9.

The easier way to install and maintain up-to-date Ansible inside OracleLinux version 9 is using the ansible-core package included in the AppStream distribution repository.

Please notice that the package ansible isn’t available anymore.

It’s not necessary to use the additional EPEL package repository.

See also:

[Ansible terminology - ansible vs ansible-core packages](/articles/ansible-terminology-ansible-vs-ansible-core-packages).

Links

  • [OracleLinux website](https://www.oracle.com/linux/)

Playbook

Let’s jump into a quick live Playbook of how to install the latest version of Ansible in OracleLinux.

I’m going to install the ansible-core package in an OracleLinux 9 using the AppStream distribution repository.

code

  • Install-Ansible-OracleLinux9.sh

``bash

#!/bin/bash

sudo yum install ansible-core

`

execution

``bash

$ ssh [email protected]

[devops@demo ~]$ sudo su

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

Red Hat Enterprise Linux release 9.0 (Ootpa)

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

NAME="Oracle Linux Server"

VERSION="9.0"

ID="ol"

ID_LIKE="fedora"

VARIANT="Server"

VARIANT_ID="server"

VERSION_ID="9.0"

PLATFORM_ID="platform:el9"

PRETTY_NAME="Oracle Linux Server 9.0"

ANSI_COLOR="0;31"

CPE_NAME="cpe:/o:oracle:linux:9:0:server"

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

BUG_REPORT_URL="https://github.com/oracle/oracle-linux"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 9"

ORACLE_BUGZILLA_PRODUCT_VERSION=9.0

ORACLE_SUPPORT_PRODUCT="Oracle Linux"

ORACLE_SUPPORT_PRODUCT_VERSION=9.0

[root@demo devops]# hostnamectl

Static hostname: demo.example.com

Icon name: computer-vm

Chassis: vm 🖴

Machine ID: 71df5c9e92ab486f9e8a3f59b9bd5068

Boot ID: ef2f06382bbe40c89fd104e8a48aa778

Virtualization: oracle

Operating System: Oracle Linux Server 9.0

CPE OS Name: cpe:/o:oracle:linux:9:0:server

Kernel: Linux 5.15.0-0.30.19.el9uek.x86_64

Architecture: x86-64

Hardware Vendor: innotek GmbH

Hardware Model: VirtualBox

[root@demo de

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