# Could a newest Ansible 2.17 install on RHEL9.3 or 9.4?

**URL:** <https://forum.ansible.com/t/could-a-newest-ansible-2-17-install-on-rhel9-3-or-9-4/7178>\
**Category:** Get Help\
**Tags:** rhel, ansible-core\
**Created:** [July 9, 2024, 10:18am UTC](https://forum.ansible.com/t/could-a-newest-ansible-2-17-install-on-rhel9-3-or-9-4/7178 "2024-07-09T10:18:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![U1ROU](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/u1rou/32/4183_2.png) [@U1ROU](https://forum.ansible.com/u/U1ROU)\
**Post date:** [July 9, 2024, 10:18am UTC](https://forum.ansible.com/t/could-a-newest-ansible-2-17-install-on-rhel9-3-or-9-4/7178/1 "2024-07-09T10:18:11Z")

</div>

We would like to install newest softwares, Ansible 2.17 on RHEL9.4 because RHEL’s full support is up to 9.  
But I can only find the information below.

Are there any information about that compatibility?

**Updates to using Ansible Core in Red Hat Enterprise Linux**

> **[Updates to using Ansible Core in Red Hat Enterprise Linux](https://www.redhat.com/en/blog/updates-using-ansible-core-in-rhel)**
>
> Automation is a key aspect of operating system management, which is why Red Hat Enterprise Linux (RHEL) includes a number of features related to automation. This automation provided in RHEL is enabled by the Ansible Core package (ansible-core), which...

---

<div class="post-metadata">

**Author:** ![kurokobo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kurokobo/32/182_2.png) [@kurokobo](https://forum.ansible.com/u/kurokobo)\
**Post date:** [July 10, 2024, 3:55pm UTC](https://forum.ansible.com/t/could-a-newest-ansible-2-17-install-on-rhel9-3-or-9-4/7178/2 "2024-07-10T15:55:33Z")

</div>

AFAIK, this is the requirements for the control node; _any UNIX-like machine with Python installed_

> **Control node requirements**  
> For your control node (the machine that runs Ansible), you can use nearly any UNIX-like machine with Python installed. This includes Red Hat, Debian, Ubuntu, macOS, BSDs, and Windows under a Windows Subsystem for Linux (WSL) distribution.  
> [Installing Ansible — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#intro-installation-guide)

However, there are requirements regarding the version of Python.  
The latest Ansible 2.17 requires Python 3.10 - 3.12 for the control node.  
Refer to the support matrix: [Releases and maintenance — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix)

In practice, Ansible is tested on several representative OSes before being released. It seems that version 2.17.1 has been tested on RHEL 9.3: [ansible/.azure-pipelines/azure-pipelines.yml at v2.17.1 · ansible/ansible · GitHub](https://github.com/ansible/ansible/blob/v2.17.1/.azure-pipelines/azure-pipelines.yml)

---

<div class="post-metadata">

**Author:** ![Denney-tech](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/denney-tech/32/1556_2.png) [@Denney-tech](https://forum.ansible.com/u/Denney-tech)\
**Post date:** [July 10, 2024, 6:55pm UTC](https://forum.ansible.com/t/could-a-newest-ansible-2-17-install-on-rhel9-3-or-9-4/7178/3 "2024-07-10T18:55:39Z")

</div>

You will need to use pip (or pipx) to install ansible-core\>=2.15.0 on RHEL 9, and as @kurokobo mentioned, you need at least python3.10 (RHEL 9 comes with python3.9 out of the box).

My own RHEL 9.4 sandbox uses the following basic installation steps:

Run as root:

```bash
umask 0022
dnf install -y python3.12-pip-wheel
pip3.12 install pipx>=1.5.0 --user
pipx --global install ansible --python=python3.12 --include-deps --system-site-packages
pipx --global inject ansible --include-deps --include-apps ansible-lint ansible-builder ansible-navigator ansible-rulebook ansible-policy
pipx --global ensurepath 

```

This installs the majority of ansible-\* tools into a pipx managed venv, can be upgraded with `pipx --global upgrade ansible`, and is usable by all users. Feel free to play around with pipx. You may not need/want all users to have access, so exclude the `--global` option, or you may only want `pipx install ansible-core --include-deps --system-site-packages` to get `ansible-core` without any of collections distributed with `ansible`.

I don’t think `pipx --global ensurepath` updates $PATH for all users though, so you might have to update separately.

---

<div class="post-metadata">

**Author:** ![U1ROU](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/u1rou/32/4183_2.png) [@U1ROU](https://forum.ansible.com/u/U1ROU)\
**Post date:** [July 11, 2024, 5:37am UTC](https://forum.ansible.com/t/could-a-newest-ansible-2-17-install-on-rhel9-3-or-9-4/7178/4 "2024-07-11T05:37:39Z")

</div>

@kurokobo -san,

Thank you for your information. Especially, information that which version of RHEL is tested with Ansible are valuable one !!

---

<div class="post-metadata">

**Author:** ![U1ROU](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/u1rou/32/4183_2.png) [@U1ROU](https://forum.ansible.com/u/U1ROU)\
**Post date:** [July 11, 2024, 5:44am UTC](https://forum.ansible.com/t/could-a-newest-ansible-2-17-install-on-rhel9-3-or-9-4/7178/5 "2024-07-11T05:44:23Z")

</div>

@Denney-tech -san,

Thank you for your detailed information!!  
I can image the point of installation more specifically!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [August 10, 2024, 5:44am UTC](https://forum.ansible.com/t/could-a-newest-ansible-2-17-install-on-rhel9-3-or-9-4/7178/6 "2024-08-10T05:44:43Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
