Loading...

Watch: How to install Ansible in Fedora 37 - Ansible install

How to install and maintain the latest version of Ansible inside Fedora 37 using the system repository with a practical Playbook.

How to install Ansible in Fedora version 37.

Today we're going to talk about the easier way to install and maintain Ansible inside Fedora 37 using the

system repository.

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

How to install Ansible in Fedora 37

Today we're talking about How to install Ansible in Fedora 37.

The good news is that Ansible is included in the default repository so you could install it simply with your usual package manager.

You could expect the latest version of Ansible in the updates repository.

At the moment is available the latest 2.14 for ansible-core and 6.4 for ansible.

See also:

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

## Playbook

Let's jump in a quick live Playbook of how to install the latest version of Ansible in Fedora.

code

  • install-Ansible-Fedora.sh

``bash

#!/bin/bash

sudo dnf update

sudo dnf list available ansible

sudo dnf install ansible

sudo "rpm -qa | grep ansible"

sudo dnf list ansible

`

execution

``bash

[luca@fedora ~]$ sudo su

[sudo] password for luca:

[root@fedora luca]# cat /etc/redhat-release

Fedora release 37 (Thirty Seven)

[root@fedora luca]# hostnamectl

Static hostname: n/a

Transient hostname: fedora

Icon name: computer-vm

Chassis: vm 🖴

Machine ID: d2529b15dd1248ff98eb849bea4769ff

Boot ID: 25ddcebe009247d285a8acef12f3d2ca

Virtualization: vmware

Operating System: Fedora Linux 37 (Workstation Edition)

CPE OS Name: cpe:/o:fedoraproject:fedora:37

Kernel: Linux 6.0.7-301.fc37.aarch64

Architecture: arm64

Hardware Vendor: VMware, Inc.

Hardware Model: VMware20,1

Firmware Version: VMW201.00V.20432347.BA64.2209100127

[root@fedora luca]# cat /etc/os-release

NAME="Fedora Linux"

VERSION="37 (Workstation Edition)"

ID=fedora

VERSION_ID=37

VERSION_CODENAME=""

PLATFORM_ID="platform:f37"

PRETTY_NAME="Fedora Linux 37 (Workstation Edition)"

ANSI_COLOR="0;38;2;60;110;180"

LOGO=fedora-logo-icon

CPE_NAME="cpe:/o:fedoraproject:fedora:37"

DEFAULT_HOSTNAME="fedora"

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

DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f37/system-administrators-guide/"

SUPPORT_URL="https://ask.fedoraproject.org/"

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

REDHAT_BUGZILLA_PRODUCT="Fedora"

REDHAT_BUGZILLA_PRODUCT_VERSION=37

REDHAT_SUPPORT_PRODUCT="Fedor

Read the full tutorial: How to install Ansible in Fedora 37 - Ansible install