How to install Ansible in Fedora 39 - Ansible install — Video Tutorial
Learn how to install Ansible on Fedora 39 efficiently using dnf, ensuring your system is ready for automation tasks with the latest versions of ansible-core and ansible.
Watch Video
Watch "How to install Ansible in Fedora 39 - Ansible install" on YouTube
What You'll Learn
- Introduction
- Prerequisites
- Installation Steps
- 1. Update the System
- 2. Check Ansible Availability
- 3. Install Ansible
- 4. Verify Ansible Installation
- Additional Information
- Verify Installed
- Updating Ansible
Full Tutorial Content
Introduction
Ansible is a powerful open-source automation tool that simplifies the configuration management, application deployment, and task automation processes. In this guide, we will walk through the steps to install Ansible on a Fedora 39 system.
At the moment the following versions are available for `ansible-core` 2.16.0 and `ansible` 9.0.0.
See also:
[Ansible terminology - ansible vs ansible-core packages](/articles/ansible-terminology-ansible-vs-ansible-core-packages).
Prerequisites
Before you begin, make sure you have:
- Access to a Fedora 39 system.
- `sudo` or `root` privileges on the system.
Installation Steps
1. Update the System
Ensure your system is up to date by running the following commands:
```bash
sudo dnf update
```
2. Check Ansible Availability
Verify if Ansible is already installed by running:
```bash
ansible --version
```
If Ansible is not installed, the command will return `bash: ansible: command not found.`
```bash
bash: ansible: command not found...
Install package 'ansible-core' to provide command 'ansible'? [N/y]
```
3. Install Ansible
To install Ansible, run the following command:
```bash
sudo dnf install ansible
```
You may be prompted to confirm the installation. Type 'y' and press Enter.
```bash
Dependencies resolved.
=========================================================================================
Package Architecture Version Repository Size
=========================================================================================
Installing:
ansible noarch 9.0.0~a1-1.fc39 fedora 47 M
Installing dependencies:
ansible-core noarch 2.16.0~b2-1.fc39 fedora 3.7 M
libdnf5 aarch64 5.1.5-1.fc39 updates 818 k
python3-jinja2 noarch 3.1.2-5.fc39 fedora 506 k
python3-resolvelib noarch 0.5.5-9.fc39 fedora 42 k
Installing weak dependencies:
python3-libdnf5 aarch64 5.1.5-1.fc39 updates 1.3 M
Transaction Summary
=========================================================================================
Install 6 Packages
Total download size: 53 M
Installed size: 460 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): python3-jinja2-3.1.2-5.fc39.noarch.rpm 1.2 MB/s | 506 kB 00:00
(2/6): python3-resolvelib-0.5.5-9.fc39.noarch.rpm 1.2 MB/s | 42 kB 00:00
(3/6): ansible-core-2.16.0~b2-1.fc39.noarch.rpm 3.2 MB/s | 3.7 MB 00:01
(4/6): python3-libdnf5-5.1.5-1.fc39.aarch64.rpm 2.0 MB/s | 1.3 MB 00:00
(5/6): libdnf5-5.1.5-1.fc39.aarch64.rpm 189 kB/s | 818 kB 00:04
(6/6): ansible-9.0.0~a1-1.fc39.noarch.rpm 321 kB/s | 47 MB 02:30
------------------------------------------------------------------------------
About This Tutorial
- Author: Luca Berton
- Difficulty: Advanced
- Read time: 5 min
- Category: installation
Read the full written article: How to install Ansible in Fedora 39 - Ansible install
Topics Covered
Related Video Tutorials
- How to Run Linux Fedora Workstation 39 on an Apple Mac — Twenty Years of Fedora: Celebrating Innovation in Open Source
- How to install Ansible in Fedora 34 - Ansible install — How to install and maintain the latest version of Ansible inside Fedora 34 using the default repository with a practical Playbook.
- 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 36 - Ansible install — How to install and maintain the latest version of Ansible inside Fedora 36 using the system repository with a practical Playbook.
- 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 38 - Ansible install — How to install and maintain the latest version of Ansible inside Fedora 38 using the system repository with a practical Playbook.