How to install Ansible in Red Hat Enterprise Linux version 8 Today we’re going to talk about the easier way to install and maintain Ansible inside RHEL 8 with the distribution tools. I’m Luca Berton and welcome to today’s episode of Ansible Pilot.
Today we’re talking about How to install Ansible in RHEL 8. The easier way to install and maintain Ansible inside Red Hat Enterprise Linux version 8 with the distribution tools. The repository that contains Ansible is called the Ansible Engine software collection. The main advantage of using software collection is that you don’t require any external repository such as EPEL for this content. Software Collections are fully supported by Red Hat and included in your subscription plan.
Are you ready to make your hands dirty? Let’s jump in a quick live demo of how to install the latest and a specific version of Ansible in RHEL8.
#!/bin/bash
sudo subscription-manager register
sudo subscription-manager repos --enable ansible-2.9-for-rhel-8-x86_64-rpms
sudo yum install ansible