How to install Ansible in RHEL 10 Red Hat Enterprise Linux
By Luca Berton · Published 2024-01-01 · Category: installation
Step-by-step guide to install Ansible on RHEL 10 (Red Hat Enterprise Linux 10). Install Ansible using dnf and the Ansible Automation Platform repository.
How to Install Ansible in RHEL 10
In this guide, I'll show you how to install Ansible on Red Hat Enterprise Linux 10. I'm Luca Berton, and I'll walk you through the installation.
Prerequisites • RHEL 10 system with active subscription • SSH access or terminal • Root or sudo privileges • Internet connection
Step-by-Step Installation
Step 1: Connect via SSH
Step 2: Become Root
Step 3: Update the System
Step 4: Enable the Ansible Repository
Or install ansible-core from AppStream:
Step 5: Install Ansible
Step 6: Verify Installation
Step 7: Test Ansible
Alternative: Install via pip
Configuration
FAQ
Should I install ansible-core or Ansible Automation Platform on RHEL? For CLI automation, ansible-core is sufficient. For enterprise features (web UI, RBAC, EDA), install Ansible Automation Platform.
Does RHEL 10 require a subscription for Ansible? ansible-core is available in the AppStream repository included with RHEL subscriptions. The free Red Hat Developer subscription also works.
Conclusion
You've successfully installed Ansible on RHEL 10. For more guides, visit AnsiblePilot.
Related Articles • Ansible Become Guide • Ansible Inventory Guide
Category: installation