AnsiblePilot — Master Ansible Automation

AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,400 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 8 Ansible books published by Apress and Leanpub including "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example", 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 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 on YouTube · Read the written article

Tutorial summary

What you'll learn

  • How to install Ansible in Oracle Linux 8
  • Links
  • code
  • execution
  • before execution
  • after execution
  • Conclusion
  • Related Articles
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

Topics covered

Related video tutorials