How to install Ansible in Red Hat Enterprise Linux version 9 Beta?
Today we're going to talk about the easier way to install and maintain Ansible inside RHEL 9 with the distribution tools.
I'm Luca Berton and welcome to today's episode of Ansible Pilot.
How to install Ansible in RHEL 9 Beta
- The Ansible Core package (ansible-core) included in the RHEL 9 AppStream repository
Today we're talking about How to install Ansible in RHEL 9 Beta.
The good news is that the Ansible Core package (ansible-core) is included out-of-the-box in the RHEL 9 AppStream repository.
No more additional repository (Ansible Engine or EPEL) like previous versions for basic automation.
However, for additional support for the underlying platform and Core-maintained modules is required the Ansible Automation Platform subscription.
Link
- [Scope of support for the Ansible Core package included in the RHEL 9 AppStream](https://access.redhat.com/articles/6325611)
- [Using Ansible in RHEL 9](https://access.redhat.com/articles/6393321)
## Playbook
Install latest Ansible-Core in RHEL 9.
code
- Install-Ansible-RHEL9.sh
``bash
#!/bin/bash
sudo dnf install ansible-core
`
execution
``bash
$ ssh [email protected]
Last login: Fri Jan 21 17:32:05 2022 from 192.168.0.101
[devops@localhost ~]$ sudo su
[root@localhost devops]# cat /etc/redhat-release
Red Hat Enterprise Linux release 9.0 Beta (Plow)
[root@localhost devops]# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="9.0 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.0"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Red Hat Enterprise Linux 9.0 Beta (Plow)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/9/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_BUGZILLA_PRODUCT_VERSION=9.0
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.0 Beta"
[root@localhost devops]# hostnamectl
Static hostname: n/a
Transient hostname: localhost
Icon name: computer-vm
Chassis: vm
Machine ID: e095682a704549189f7f89473724bc21
Boot ID: ab4c4523b571418fad3bd0c754e6063d
Virtualization: oracle
Operating System: Red Hat Enterprise Linux 9.0 Beta (Plow)
CPE OS Name: cpe:/o:redhat:enterprise_linux:9::baseos
Kernel: Linux 5.14.0-39.el9.x86_64
Architecture: x86-64
Hardware Vendor: innotek GmbH
Hardware Model: VirtualBox
[root@localhost devops]# uname -a
Linux localhost.localdomain 5.14.0-39.el9.x86_64 #1 SMP PREEMPT Fri Dec 24 00:07:58 EST 2021 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost devops]# dnf search ansible
Updating Subscription Management repositories.
Last metadata expiration check: 1:40:46 ago on Fri 21 Jan 2022 04:15:49 PM CET.
=============================