How to install Ansible in Fedora 43 — Ansible install

By Luca Berton · Published 2024-01-01 · Category: installation

Install Ansible on Fedora 43 with this step-by-step 2026 guide. Complete walkthrough using dnf package manager with the latest Ansible version.

Introduction

Fedora 43 brings the latest packages and technologies to your desktop and server environments. Combined with Ansible, you can automate your infrastructure management with ease. This guide walks you through installing Ansible on Fedora 43, from updating your system to verifying the installation and running your first Ansible command.

Prerequisites

Before you begin, ensure that you have: • Access to a Fedora 43 system with root or sudo privileges. • An active internet connection to download necessary packages. • Python 3.13 or later installed (included by default in Fedora 43).

Step-by-Step Installation Connect to Your Server Initiate an SSH connection from your terminal: Switch to Root User For installing system-wide software: Update System Packages Before installing any new software, update your system:

Confirm any prompts to ensure your system has the latest updates. Check Available Ansible Packages Verify which Ansible packages are available:

This will show you the latest versions available from the Fedora 43 repositories. Install Ansible Using the dnf package manager, install Ansible:

This command installs Ansible along with its dependencies. Confirm the installation when prompted. Verify the Installation Once installation is complete, check the installed version:

This command displays the version of Ansible and configuration details, confirming a successful installation.

Configuration and First Steps Configure Ansible Ansible configurations can be adjusted in the ansible.cfg file located in /etc/ansible/. Customize settings like default inventory file, privilege escalation settings, and more. Edit the Inventory File Ansible uses an inventory file to track managed servers: Test Ansible Connectivity Ensure that Ansible can communicate with your hosts:

Expected output:

Conclusion

With Ansible installed on Fedora 43, you are now ready to automate your infrastructure. Whether managing configurations, deploying applications, or automating daily tasks, Ansible provides the tools necessary for efficient and error-free operations.

Start by creating simple playbooks to familiarize yourself with Ansible's capabilities, and gradually progress to more complex automations. The vast community-driven library of modules and roles available through Ansible Galaxy can significantly reduce your scripting efforts and ensure reliable, repeatable configurations across your environment.

For more Ansible tutorials and guides, explore the complete article collection on Ansible Pilot.

Related ArticlesAnsible Galaxy GuideAnsible Become GuideAnsible Inventory GuideAnsible Roles Guide

Category: installation

Browse all Ansible tutorials · AnsiblePilot Home