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.
Watch Video
Watch "How to install Ansible in Fedora 35 - Ansible install" on YouTube
What You'll Learn
- How to install Ansible in Fedora 35
- code
- execution
- before execution
- after execution
- Conclusion
- Related Articles
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: 5 min
- Category: installation
Read the full written article: How to install Ansible in Fedora 35 - 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 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.
- How to install Ansible in Fedora 39 - Ansible install — 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.