Using Ansible in RHEL 9
Previous versions of RHEL (RHEL 7 and RHEL 8) provide access to separate Ansible repositories that contain Ansible Engine 2.9 in order to enable Red Hat provided and generated automation based on Ansible. The scope of support, when utilizing Ansible Engine without an Ansible subscription, is limited to running Ansible playbooks created or generated by Red Hat products, such as RHEL System Roles, Insights remediation playbooks, and OpenSCAP Ansible remediation playbooks. Other use cases, including utilizing the other Ansible modules and plugins included with Ansible Engine 2.9 is outside of the scope of support.
RHEL 9 has introduced Ansible Core, which contains the Ansible command line tools, such as the ansible-playbook and ansible commands, and a small set of Content from docs.ansible.com is not included.builtin Ansible plugins. The scope of support for Ansible Core in RHEL 9 remains the same: Ansible Core is provided to enable Ansible automation content written or generated by Red Hat products. Ansible Core will provide all needed functionality for customers utilizing supported RHEL Ansible content, such as RHEL System Roles and Insights remediation playbooks. Ansible Engine is not available on RHEL 9.
However, customers might be impacted by the move from Ansible Engine to Ansible Core if they have been operating outside of the scope of support and utilizing the Ansible modules and plugins included with Ansible Engine 2.9, most of which are no longer available in Ansible Core. For these customers, playbooks that previously ran on Ansible Engine 2.9 might generate error messages related to missing plugins or modules. These customers are encouraged to speak with their Red Hat account team about the Ansible Automation Platform subscription.
Ansible Core is included in the RHEL 9 AppStream repository, and can be installed by running:
# dnf install ansible-core