Loading...

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

How to install and maintain up-to-date Ansible inside Rocky Linux 9 using DNF and the ”appstream” system repository.

How to install Ansible in Rocky Linux version 9.

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

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

How to install Ansible in Rocky Linux 9

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

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

The easier way to install and maintain up-to-date Ansible inside Rocky Linux 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

  • [Rocky Linux 9.0 Available Now](https://rockylinux.org/news/rocky-linux-9-0-ga-release/)

Playbook

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

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

code

  • Install-Ansible-RockyLinux9.sh

``bash

#!/bin/bash

sudo dnf install ansible-core

`

execution

``bash

ansible-pilot $ ssh [email protected]

Last login: Tue Jul 19 11:17:44 2022 from 192.168.43.5

[devops@rockylinux ~]$ sudo su

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

Rocky Linux release 9.0 (Blue Onyx)

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

NAME="Rocky Linux"

VERSION="9.0 (Blue Onyx)"

ID="rocky"

ID_LIKE="rhel centos fedora"

VERSION_ID="9.0"

PLATFORM_ID="platform:el9"

PRETTY_NAME="Rocky Linux 9.0 (Blue Onyx)"

ANSI_COLOR="0;32"

LOGO="fedora-logo-icon"

CPE_NAME="cpe:/o:rocky:rocky:9::baseos"

HOME_URL="https://rockylinux.org/"

BUG_REPORT_URL="https://bugs.rockylinux.org/"

ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"

ROCKY_SUPPORT_PRODUCT_VERSION="9.0"

REDHAT_SUPPORT_PRODUCT="Rocky Linux"

REDHAT_SUPPORT_PRODUCT_VERSION="9.0"

[root@rockylinux devops]# hostnamectl

Static hostname: rockylinux.example.com

Icon name: computer-vm

Chassis: vm 🖴

Machine ID: 26419e43cdb741a2a2068070219bf8d9

Boot ID: bed36d9812744b248bc8f674343c83c9

Virtualization: oracle

Operating System: Rocky Linux 9.0 (Blue Onyx)

CPE OS Name: cpe:/o:rocky:rocky:9::baseos

Kernel: Linux 5.14.0-70.13

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