AnsiblePilot — Master Ansible Automation
AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,100 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 "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example" published by Apress, 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 RedHat Enterprise Linux (RHEL) 9.2 - Ansible install — Video Tutorial
How to install Ansible Core (ansible-core) in RedHat Enterprise Linux 9.2 included in the RHEL 9.2 AppStream repository.
What You'll Learn
- How to install Ansible in Red Hat Enterprise Linux version 9.2?
- How to install Ansible in RHEL 9.2
- Link
- code
- execution
- before execution
- after execution
- Conclusion
- Related Articles
Full Tutorial Content
How to install Ansible in Red Hat Enterprise Linux version 9.2?
Today we're going to talk about the easier way to install and maintain up-to-date Ansible inside RHEL 9.2 with the distribution tools.
I'm Luca Berton and welcome to today's episode of Ansible Pilot.
How to install Ansible in RHEL 9.2
- The Ansible Core package `ansible-core` included in the RHEL 9.2 AppStream repository
Today we're talking about How to install Ansible in RHEL 9.2.
The good news is that the Ansible Core package (ansible-core) is included out-of-the-box in the RHEL 9.2 AppStream repository.
No more additional repository (Ansible Engine or EPEL) like previous versions for basic automation.
However, for additional support for the underlying platform and Core-maintained modules is required the Ansible Automation Platform subscription.
See also:
[Ansible terminology - ansible vs ansible-core packages](/articles/ansible-terminology-ansible-vs-ansible-core-packages).
Link
- [Scope of support for the Ansible Core package included in the RHEL 9.2 AppStream](https://access.redhat.com/articles/6325611)
- [Using Ansible in RHEL 9.2](https://access.redhat.com/articles/6393321)
## Playbook
Install latest Ansible-Core in RHEL 9.2.
code
- Install-Ansible-RHEL9.2.sh
```bash
#!/bin/bash
sudo dnf install ansible-core
```
execution
```bash
[root@localhost luca]# dnf install ansible-core
Updating Subscription Management repositories.
Last metadata expiration check: 0:28:25 ago on Thu 29 Jun 2023 02:55:29 PM BST.
Dependencies resolved.
=========================================================================================
Package Arch Version Repository Size
=========================================================================================
Installing:
ansible-core aarch64 2.14.2-5.el9_2 rhel-9-for-aarch64-appstream-rpms 3.4 M
Installing dependencies:
git-core aarch64 2.39.3-1.el9_2 rhel-9-for-aarch64-appstream-rpms 4.4 M
libnsl2 aarch64 2.0.0-1.el9 rhel-9-for-aarch64-appstream-rpms 32 k
mpdecimal aarch64 2.5.1-3.el9 rhel-9-for-aarch64-appstream-rpms 90 k
python3.11 aarch64 3.11.2-2.el9_2.1 rhel-9-for-aarch64-appstream-rpms 28 k
python3.11-cffi aarch64 1.15.1-1.el9 rhel-9-for-aarch64-appstream-rpms 319 k
python3.11-cryptography
aarch64 37.0.2-5.el9 rhel-9-for-aarch64-appstream-rpms 1.2 M
python3.11-libs aarch64 3.11.2-2.el9_2.1 rhel-9-for-aarch64-appstream-rpms 9.8 M
python3.11-ply noarch 3.11-1.el9 rhel-9-for-aarch64-appstream-rpms 141 k
python3.11-pycparser noarch 2.20-1.el9 rhel-9-for-aarch64-appstream-rpms 161 k
python3.11-pyyaml aarch64 6.0-1.el9 rhel-9-for-aarch64-appstream-rpms 224 k
python3.11-six noarch 1.16.0-1.el9 rhel-9-for-aarch64-appstream-rpms 47 k
sshpass aarch64 1.09-4.el9 rhel-9-for-aarc
About This Tutorial
- Author: Luca Berton
- Difficulty: Beginner
- Read time: 7 min
- Category: installation
Read the full written article: How to install Ansible in RedHat Enterprise Linux (RHEL) 9.2 - Ansible install