# Not Able to install Ansible

**URL:** <https://forum.ansible.com/t/not-able-to-install-ansible/4037>\
**Category:** Get Help\
**Created:** [February 24, 2024, 2:22pm UTC](https://forum.ansible.com/t/not-able-to-install-ansible/4037 "2024-02-24T14:22:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DebasisDBA](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/debasisdba/32/2396_2.png) [@DebasisDBA](https://forum.ansible.com/u/DebasisDBA)\
**Post date:** [February 24, 2024, 2:22pm UTC](https://forum.ansible.com/t/not-able-to-install-ansible/4037/1 "2024-02-24T14:22:08Z")

</div>

Hi Team,

While trying to install ansible I am getting below error. The RHEL version is 9.x

> [root@localhost ~]# yum install ansible  
> Updating Subscription Management repositories.  
> Last metadata expiration check: 2:47:19 ago on Saturday 24 February 2024 05:01:39 PM.  
> Error:  
> Problem: conflicting requests
> 
> - nothing provides python3.11dist(ansible-core) \>= 2.15.3 needed by ansible-8.3.0-1.el8.noarch from epel  
> (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)  
> [root@localhost ~]# python --version  
> Python 3.9.18

Could you please help here.

Thanks,  
Debasis

---

<div class="post-metadata">

**Author:** ![mariolenz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mariolenz/32/108_2.png) [@mariolenz](https://forum.ansible.com/u/mariolenz)\
**Post date:** [February 24, 2024, 3:14pm UTC](https://forum.ansible.com/t/not-able-to-install-ansible/4037/2 "2024-02-24T15:14:02Z")

</div>

> [@DebasisDBA](#):
>
> nothing provides python3.11dist(ansible-core) \>= 2.15.3 needed by ansible-8.3.0-1.el8.noarch from epel

That’s not plain RHEL, you’re using EPEL?

@Leo IIRC You’re involved with the Ansible packages on EPEL. Maybe you could help? Or am I wrong connecting you with EPEL?

---

<div class="post-metadata">

**Author:** ![Leo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/leo/32/23_2.png) [@Leo](https://forum.ansible.com/u/Leo)\
**Post date:** [March 1, 2024, 4:18pm UTC](https://forum.ansible.com/t/not-able-to-install-ansible/4037/3 "2024-03-01T16:18:36Z")

</div>

Hello @DebasisDBA , welcome to the Ansible Forum!

> [@DebasisDBA](#):
>
> [root@localhost ~]# yum install ansible  
> Updating Subscription Management repositories.  
> Last metadata expiration check: 2:47:19 ago on Saturday 24 February 2024 05:01:39 PM.  
> Error:  
> Problem: conflicting requests
> 
> - nothing provides python3.11dist(ansible-core) \>= 2.15.3 needed by ansible-8.3.0-1.el8.noarch from epel  
> (try to add ‘–skip-broken’ to skip uninstallable packages or ‘–nobest’ to use not only best candidate packages)  
> [root@localhost ~]# python --version  
> Python 3.9.18

That looks like the Ansible Community Package from EPEL (as @mariolenz pointed out), and from the filename, looks like the RHEL 8 version ( **ansible-8.3.0-1.el8.noarch** ).

RHEL 9 includes `ansible-core` in the Appstream repo, which you can install with `dnf install ansible-core`.

If you are using EPEL, you can install the Ansible Community Package (`ansible`), but you might need to exclude `ansible-core` from the main repos to avoid conflicts.

Also, as far as I can see, the current Ansible Community Package (`ansible`) version for RHEL 9 is [ansible-7.7.0-1.el9.noarch.rpm](https://rhel.pkgs.org/9/epel-x86_64/ansible-7.7.0-1.el9.noarch.rpm.html). So @DebasisDBA you might have the wrong EPEL repo enabled if you are using RHEL 9.

> [@mariolenz](#):
>
> @Leo IIRC You’re involved with the Ansible packages on EPEL. Maybe you could help? Or am I wrong connecting you with EPEL?

Thanks for the ping @mariolenz. I’m not involved, but it’s something in my backlog to check. @gotmax23 has the Fedora side of the packages, not sure if he is doing EPEL as well.

---

<div class="post-metadata">

**Author:** ![gotmax23](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gotmax23/32/106_2.png) [@gotmax23](https://forum.ansible.com/u/gotmax23)\
**Post date:** [March 2, 2024, 2:21am UTC](https://forum.ansible.com/t/not-able-to-install-ansible/4037/4 "2024-03-02T02:21:36Z")

</div>

Yes, I also help out with the EPEL package.

> nothing provides python3.11dist(ansible-core) \>= 2.15.3 needed by ansible-8.3.0-1.el8.noarch from epel

I’m not sure where `ansible-8.3.0-1.el8.noarch` comes from. `ansible-1:7.7.0` is the current version in the EPEL 9 repos. Can you provide more information about your setup? What minor version of RHEL 9 are you running? Are you using an outdated local mirror?
