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 9 - Ansible install — Video Tutorial

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.

Watch on YouTube · Read the written article

Tutorial summary

What you'll learn

  • How to install Ansible in OracleLinux version 9.
  • How to install Ansible in OracleLinux 9
  • Links
  • Playbook
  • code
  • execution
  • before execution
  • after execution
  • Conclusion
  • Related Articles
How to install Ansible in OracleLinux version 9. Today we’re going to talk about the easier way to install and maintain Ansible inside OracleLinux 9 using the appstream system repository. I’m Luca Berton and welcome to today’s episode of Ansible Pilot. How to install Ansible in OracleLinux 9 - `ansible-core` included in AppStream repository - `ansible` package not available Today we’re talking about How to install Ansible in OracleLinux 9. The easier way to install and maintain up-to-date Ansible inside OracleLinux version 9 is using the `ansible-core` package included in the AppStream distribution repository. Please notice that the package `ansible` isn’t available anymore. It’s not necessary to use the additional EPEL package repository. See also: [Ansible terminology - ansible vs ansible-core packages](/articles/ansible-terminology-ansible-vs-ansible-core-packages). Links - [OracleLinux website](https://www.oracle.com/linux/) Playbook Let’s jump into a quick live Playbook of how to install the latest version of Ansible in OracleLinux. I’m going to install the `ansible-core` package in an OracleLinux 9 using the AppStream distribution repository. code - Install-Ansible-OracleLinux9.sh ```bash #!/bin/bash sudo yum install ansible-core ``` execution ```bash $ ssh devops@oraclelinux.example.com [devops@demo ~]$ sudo su [root@demo devops]# cat /etc/redhat-release Red Hat Enterprise Linux release 9.0 (Ootpa) [root@demo devops]# cat /etc/os-release NAME="Oracle Linux Server" VERSION="9.0" ID="ol" ID_LIKE="fedora" VARIANT="Server" VARIANT_ID="server" VERSION_ID="9.0" PLATFORM_ID="platform:el9" PRETTY_NAME="Oracle Linux Server 9.0" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:oracle:linux:9:0:server" HOME_URL="https://linux.oracle.com/" BUG_REPORT_URL="https://github.com/oracle/oracle-linux" ORACLE_BUGZILLA_PRODUCT="Oracle Linux 9" ORACLE_BUGZILLA_PRODUCT_VERSION=9.0 ORACLE_SUPPORT_PRODUCT="Oracle Linux" ORACLE_SUPPORT_PRODUCT_VERSION=9.0 [root@demo devops]# hostnamectl Static hostname: demo.example.com Icon name: computer-vm Chassis: vm 🖴 Machine ID: 71df5c9e92ab486f9e8a3f59b9bd5068 Boot ID: ef2f06382bbe40c89fd104e8a48aa778 Virtualization: oracle Operating System: Oracle Linux Server 9.0 CPE OS Name: cpe:/o:oracle:linux:9:0:server Kernel: Linux 5.15.0-0.30.19.el9uek.x86_64 Architecture: x86-64 Hardware Vendor: innotek GmbH Hardware Model: VirtualBox [root@demo devops]# uname -a Linux demo.example.com 5.15.0-0.30.19.el9uek.x86_64 #2 SMP Wed Jun 15 22:59:49 PDT 2022 x86_64 x86_64 x86_64 GNU/Linux [root@demo devops]# dnf search ansible Last metadata expiration check: 0:09:16 ago on Tue 12 Jul 2022 09:06:33 AM UTC. ================================= Name & Summary Matched: ansible ================================= ansible-freeipa-tests.noarch : ansible-freeipa tests ansible-pcp.noarch : Ansible Metric collection for Performance Co-Pilot ansible-pcp.src : Ansible Metric collecti

About this tutorial

  • Author: Luca Berton
  • Difficulty: Beginner
  • Read time: 14 min
  • Category: installation

Topics covered

Related video tutorials