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 40 — Ansible install — Video Tutorial
Install Ansible on Fedora 40 with this updated 2026 guide. Complete walkthrough using dnf package manager with the latest Ansible version.
What You'll Learn
- Introduction
- Prerequisites
- Step-by-Step Installation
- Configuration and First Steps
- Conclusion
- Related Articles
- See also
Full Tutorial Content
Introduction
With Fedora 40 serving as a robust platform for server management, incorporating automation tools like Ansible significantly enhances efficiency and system management capabilities. This guide walks you through the process of installing Ansible on Fedora 40, ensuring you are equipped to automate your system tasks effectively.
Prerequisites
Before you begin, ensure that you have:
- Access to a Fedora 40 server with root privileges.
- An active internet connection to download necessary packages.
Step-by-Step Installation
1. Connect to Your Fedora Server Initiate an SSH connection from your terminal:
```bash
ssh devops@fedora.example.com
```
Enter the password when prompted to access your server.
2. Switch to Root User For installing system-wide software and performing administrative tasks, switch to the root user:
```bash
sudo su
```
Enter your password to continue.
3. Update System Packages Before installing any new software, it's a good practice to update your system's package index:
```bash
dnf update
```
Confirm any prompts to ensure your system has the latest updates.
4. Check Available Ansible Packages To find out the available Ansible packages, you can list them using DNF:
```bash
dnf list ansible
dnf list ansible-core
```
This is the output:
```bash
root@localhost:/home/devops# dnf list ansible
Available Packages
ansible.noarch 9.4.0-1.fc40 updates
root@localhost:/home/devops# dnf list ansible-core
Available Packages
ansible-core.noarch 2.16.5-1.fc40 updates
root@localhost:/home/devops#
```
This will show you the latest versions available for installation.
5. Install Ansible Using the DNF package manager, install Ansible:
```bash
dnf install ansible
```
This command installs Ansible along with its dependencies. Confirm the installation when prompted.
```bash
root@localhost:/home/devops# dnf install ansible
Dependencies resolved.
=========================================================================================
Package Architecture Version Repository Size
=========================================================================================
Installing:
ansible noarch 9.4.0-1.fc40 updates 48 M
Installing dependencies:\
ansible-core noarch 2.16.5-1.fc40 updates 3.7 M
fmt aarch64 10.2.1-4.fc40 fedora 121 k
libdnf5 aarch64 5.1.17-1.fc40 updates 914 k
python3-cryptography aarch64 41.0.7-1.fc40 fedora 1.2 M
python3-jinja2 noarch 3.1.3-3.fc40 fedora 507 k
python3-markupsafe aarch64 2.1.3-4.fc40 fedora 30 k
python3-resolvelib noarch 1.0.1-4.fc4
About This Tutorial
- Author: Luca Berton
- Difficulty: Advanced
- Read time: 4 min
- Category: installation
Read the full written article: How to install Ansible in Fedora 40 — Ansible install