How to install Ansible in Oracle Linux 8 - Ansible install — Video Tutorial
Learn how to install the latest Ansible release on Oracle Linux 8 using the oracle-epel-release-el8 repository with a simple script.
Watch Video
Watch "How to install Ansible in Oracle Linux 8 - Ansible install" on YouTube
What You'll Learn
- How to install Ansible in Oracle Linux 8
- Links
- code
- execution
- before execution
- after execution
- Conclusion
- Related Articles
Full Tutorial Content
How to install Ansible in Oracle Linux version 8. Today we're going to talk about the easier way to install and maintain Ansible inside Oracle Linux 8 using the EPEL repository. I'm Luca Berton and welcome to today's episode of Ansible Pilot.
How to install Ansible in Oracle Linux 8
- use Extra Packages for Enterprise Linux (EPEL) additional packages for Enterprise Linux: Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL)
Today we're talking about how to install Ansible in AlmaLinux 8. The easier way to install and maintain Ansible inside AlmaLinux version 8 is using the Extra Packages for Enterprise Linux (EPEL) additional repository. This repository is maintained by the Fedora Special Interest Group and manages a high-quality set of additional packages for Enterprise Linux: Red Hat Enterprise Linux (RHEL), Alma Linux, Rocky Linux and Scientific Linux (SL), Oracle Linux (OL).
Links
- [Oracle Linux 8](https://www.oracle.com/linux/)
## Playbook
Install latest Ansible release in Oracle Linux 8.
code
- Install-Ansible-OracleLinux8.sh
```bash
#!/bin/bash
sudo yum install oracle-epel-release-el8
sudo yum install ansible
```
execution
```bash
$ ssh devops@oraclelinux.example.com
Welcome to Oracle Linux Server release 8.5 (GNU/Linux 5.4.17-2136.300.7.el8uek.x86_64)
The Oracle Linux End-User License Agreement can be viewed here:
* /usr/share/eula/eula.en_US
For additional packages, updates, documentation and community help, see:
* https://yum.oracle.com/
Last login: Fri Jan 21 09:09:29 2022 from 192.168.0.101
[devops@demo ~]$ sudo su
[root@demo devops]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.5 (Ootpa)
[root@demo devops]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.5"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.5"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.5"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:5:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.5
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.5
[root@demo devops]# hostnamectl
Static hostname: demo.example.com
Icon name: computer-vm
Chassis: vm
Machine ID: b6a0872df74a4344931618a6b39ff738
Boot ID: be88c593add3426a996483719c7c6a47
Virtualization: oracle
Operating System: Oracle Linux Server 8.5
CPE OS Name: cpe:/o:oracle:linux:8:5:server
Kernel: Linux 5.4.17-2136.300.7.el8uek.x86_64
Architecture: x86-64
[root@demo devops]# uname -a
Linux demo.example.com 5.4.17-2136.300.7.el8uek.x86_64 #2 SMP Fri Oct 8 16:23:01 PDT 2021 x86_64 x86_64 x86_64 GNU/Linux
[root@demo devops]# dnf info ansible
Last metadata expiration check: 0:47:09 ago on Fri 21 Jan 2022 09:55:33 AM UTC.
Error: No matching Packages to list
[root@demo devops]# dnf search epel
Last met
About This Tutorial
- Author: Luca Berton
- Difficulty: Beginner
- Read time: 9 min
- Category: installation
Read the full written article: How to install Ansible in Oracle Linux 8 - Ansible install
Topics Covered
Related Video Tutorials
- How to install Ansible in Oracle Linux 9 - Ansible install — Learn how to easily install and maintain Ansible on Oracle Linux 9 using the ansible-core package from the AppStream repository with this straightforward guide.
- Run RHEL 9.2 on Mac Using VMware Fusion: A Step-by-Step Guide — Learn how to run Red Hat Enterprise Linux 9.2 on your Mac with VMware Fusion. Follow our step-by-step guide for seamless installation and configuration.
- How to install Ansible in AlmaLinux 9 - Ansible install — Updated 2026 guide to install Ansible on AlmaLinux 9. Complete instructions using EPEL, pip, or pipx.
- How to install Ansible in CentOS 8 Stream - Ansible install — Learn the easiest way to install and maintain Ansible on CentOS Stream 8 using the EPEL Next repository, managed by the Fedora Special Interest Group.
- How to install Ansible in CentOS 8 - Ansible install — Discover the easiest way to install and maintain Ansible on CentOS 8 using the EPEL repository, managed by the Fedora Special Interest Group.
- How to install Ansible in RedHat Enterprise Linux (RHEL) 8 with Ansible Engine - Ansible install — How to install the latest and a specific version of Ansible in Red Hat Enterprise version 8 using Ansible Engine software collection.