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

Discover the easiest way to install and maintain Ansible on CentOS 8 using the EPEL repository, managed by the Fedora Special Interest Group.

Watch on YouTube · Read the written article

Tutorial summary

What you'll learn

  • How to install Ansible in CentOS 8
  • code
  • execution
  • Conclusion
  • Related Articles
How to install Ansible in CentOS version 8. Today we're going to talk about the easier way to install and maintain Ansible inside CentOS 8 using the EPEL repository. I'm Luca Berton and welcome to today's episode of Ansible Pilot. How to install Ansible in CentOS 8 - use Extra Packages for [Enterprise Linux (EPEL)](https://docs.fedoraproject.org/en-US/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 CentOS 8. The easier way to install and maintain Ansible inside CentOS 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), CentOS and Scientific Linux (SL), Oracle Linux (OL). ## Playbook Let's jump in a quick live Playbook of how to install the latest and a specific version of Ansible in CentOS. code - install_ansible_EPEL.sh ```bash #!/bin/bash sudo yum install epel-release sudo yum install ansible ``` execution output ```bash yum install epel-release Last metadata expiration check: 0:00:59 ago on Mon 18 Oct 2021 01:41:22 PM UTC. Package epel-release-8-11.el8.noarch is already installed. Dependencies resolved. =================================================================================================== Package Architecture Version Repository Size =================================================================================================== Upgrading: epel-release noarch 8-13.el8 epel 23 k Transaction Summary =================================================================================================== Upgrade 1 Package Total download size: 23 k Is this ok [y/N]: y Downloading Packages: epel-release-8-13.el8.noarch.rpm 363 kB/s | 23 kB 00:00 --------------------------------------------------------------------------------------------------- Total 39 kB/s | 23 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: epel-release-8-13.el8.noarch 1/1 Upgrading : epel-release-8-13.el8.noarch 1/2 warning: /etc/yum.repos.d/epel-playground.repo created as /etc/yum.repos.d/epel-playground.repo.rpmnew warning: /etc/yum.repos.d/epel-testing-modular.repo created as /etc/yum.repos.d/epel-testing-modular.repo.rpmnew warning: /etc/yum.repos.d/epel-testing.repo created as

About this tutorial

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

Topics covered

Related video tutorials