Loading...

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

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

How to install Ansible in Fedora version 35.

Today we're going to talk about the easier way to install and maintain Ansible inside Fedora 35 using the default repository.

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

How to install Ansible in Fedora 35

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

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.9.

## 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 list available ansible

$ sudo dnf install ansible

$ sudo "rpm -qa | grep ansible"

$ sudo dnf list ansible

`

execution

``bash

$ ssh [email protected]

[devops@demo ~]$ sudo su

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

Fedora release 35 (Thirty Five)

[root@demo devops]# hostnamectl

Static hostname: demo.example.com

Icon name: computer-vm

Chassis: vm

Machine ID: 1894b60f7c1a45b9a6fc87cf8a4bed54

Boot ID: 68bfe9b366c34c8d95df1a3774cf5641

Virtualization: oracle

Operating System: Fedora Linux 35 (Cloud Edition)

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

Kernel: Linux 5.14.10-300.fc35.x86_64

Architecture: x86-64

Hardware Vendor: innotek GmbH

Hardware Model: VirtualBox

[root@demo devops]# dnf list available ansible

Fedora 35 - x86_64 3.3 MB/s | 61 MB 00:18

Fedora 35 openh264 (From Cisco) - x86_64 2.7 kB/s | 2.5 kB 00:00

Fedora Modular 35 - x86_64 1.6 MB/s | 2.6 MB 00:01

Fedora 35 - x86_64 - Updates 1.1 MB/s | 15 MB 00:12

Fedora Modular 35 - x86_64 - Updates 400 kB/s | 736 kB 00:01

Available Packages

ansible.noarch 2.9.27-1.fc35 updates

[root@demo devops]# dnf install ansible

Last metadata expiration check: 0:00:14 ago on Fri 03 Dec 2021 03:42:34 PM UTC.

Dependencies resolved.

===================================================================================================

Package Architecture Version Rep

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