AnsiblePilot — Master Ansible Automation
AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,400 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.
Popular Topics
About Luca Berton
Luca Berton is an Ansible automation expert, author of 8 Ansible books published by Apress and Leanpub including "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example", and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.
How to install Ansible in Fedora 35 - Ansible install — Video Tutorial
How to install and maintain the latest version of Ansible inside Fedora 35 using the default repository with a practical Playbook.
What You'll Learn
- How to install Ansible in Fedora 35
- code
- execution
- before execution
- after execution
- Troubleshooting Common Installation Issues
- 1. Wrong Python interpreter
- 2. SELinux / AppArmor blocking ansible
- 3. SSH key authentication failing
- 4. `pip install` conflicts with system packages
Full Tutorial Content
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 devops@fedora.example.com
[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 Repository Size
===================================================================================================
Installing:
ansible noarch 2.9.27-1.fc35 updates 15 M
Installing dependencies:
libsodium x86_64 1.0.18-8.fc35 fedora 161 k
python3-bcrypt x86_64 3.2.0-1.fc35 fedora 43 k
python3-jmespath noarch 0.10.0
About This Tutorial
- Author: Luca Berton
- Difficulty: Beginner
- Read time: 9 min
- Category: installation
Read the full written article: How to install Ansible in Fedora 35 - Ansible install