# Upgrade Ansible from 2.9.10 to 2.9.11 on RHEL8

**URL:** <https://forum.ansible.com/t/upgrade-ansible-from-2-9-10-to-2-9-11-on-rhel8/33589>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [August 11, 2020, 6:20pm UTC](https://forum.ansible.com/t/upgrade-ansible-from-2-9-10-to-2-9-11-on-rhel8/33589 "2020-08-11T18:20:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_Amin](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jay\_Amin](https://forum.ansible.com/u/Jay_Amin)\
**Post date:** [August 11, 2020, 6:20pm UTC](https://forum.ansible.com/t/upgrade-ansible-from-2-9-10-to-2-9-11-on-rhel8/33589/1 "2020-08-11T18:20:42Z")

</div>

Hello,  
Can anyone tell me how do I upgrade Ansible v2.9.10 to 2.9.11 or 2.9.12 on RHEL 8?

I cannot use since system is not connected to any subscription manager or repo. I use local repo. I cannot use PIP either.

I downloaded ansible-2.9.11-1.el8.noarch.rpm but now need help on how to upgrade to this version.

Thanks  
Jay

---

<div class="post-metadata">

**Author:** ![lee](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/lee/32/4857_2.png) [@lee](https://forum.ansible.com/u/lee)\
**Post date:** [August 12, 2020, 6:24am UTC](https://forum.ansible.com/t/upgrade-ansible-from-2-9-10-to-2-9-11-on-rhel8/33589/2 "2020-08-12T06:24:48Z")

</div>

try

$ sudo subscription-manager repos --enable ansible-2.9-for-rhel-8-x86\_64-rpms

and

$ sudo dnf upgrade ansible

---

<div class="post-metadata">

**Author:** ![Jay\_Amin](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jay\_Amin](https://forum.ansible.com/u/Jay_Amin)\
**Post date:** [August 12, 2020, 1:01pm UTC](https://forum.ansible.com/t/upgrade-ansible-from-2-9-10-to-2-9-11-on-rhel8/33589/3 "2020-08-12T13:01:06Z")

</div>

Hello Lee,  
So I don’t have access to subscription manager or PIP. I have to perform this as localinstall and hence your above commands don’t work when tried.

Do you know how would I upgrade without using subscription manager or without using pip command?

Thanks  
Jitesh

---

<div class="post-metadata">

**Author:** ![Jim\_Barlow](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@Jim\_Barlow](https://forum.ansible.com/u/Jim_Barlow)\
**Post date:** [August 12, 2020, 1:57pm UTC](https://forum.ansible.com/t/upgrade-ansible-from-2-9-10-to-2-9-11-on-rhel8/33589/4 "2020-08-12T13:57:56Z")

</div>

You can install pip yourself as a user:  
[https://pip.pypa.io/en/stable/installing/](https://pip.pypa.io/en/stable/installing/)

---

<div class="post-metadata">

**Author:** ![Piyush\_Bansal](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@Piyush\_Bansal](https://forum.ansible.com/u/Piyush_Bansal)\
**Post date:** [August 12, 2020, 2:25pm UTC](https://forum.ansible.com/t/upgrade-ansible-from-2-9-10-to-2-9-11-on-rhel8/33589/5 "2020-08-12T14:25:43Z")

</div>

Hello,

Apart from manual install, there is two other ways depending your infrastructure apart from manual way:

1. if you have a proxy for internet then configure proxy on rhel8 ansible node and then perform install via pip. If you don’t have proxy already then you could configure squid default proxy in some other linux flavored server.

2. create a linux/CentOS server (maybe on VMware workstation) with two network interfaces one of which could connect to internet and then  
2A) if you can access rhel8 Ansible server from your local laptop then bridge the another network connection to your local laptop network adapter which has reachability to the Ansible node.

OR - in this setup reachability is not working for you then try for following 2B  
2B) bridge the second network adapter of workstation CentOS/Linux vm with adapter of Ansible node.

OR -  
If this is also not possible then just deploy the CentOS vm and assign two network interface one of which connects to internet and another nic in same subnet as your rhel8 Ansible.

Once you have both reachability Ansible server and internet, from rhel/centos vm you deployed then

1. make this custom vm as repository for rhel8 Ansible vm and then download required packages or dependency on customer vm so that you could trigger installation of these packages on rhel8 Ansible vm.

Hope this help🙂

Thanks & Regards,  
Piyush

---

<div class="post-metadata">

**Author:** ![Jay\_Amin](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jay\_Amin](https://forum.ansible.com/u/Jay_Amin)\
**Post date:** [August 13, 2020, 5:05pm UTC](https://forum.ansible.com/t/upgrade-ansible-from-2-9-10-to-2-9-11-on-rhel8/33589/6 "2020-08-13T17:05:00Z")

</div>

Thank you all for your responses and feedback. It definitely did put me in right direction.

I was able to get 2.9.11 installed/upgraded.

Basically, I had to create new custom repo and add the 2.9.11 rpm file to it. Then had to go into RHEL .conf files (change enabled=1 to enabled=0) so that it was not checking for public key and consumer identity. Once I did that, I clean yum cache and yum clean all.

After this, I ran 'dnf locallinstall 2.9.11\*.rpm --gpgnocheck and it actually went through and did an upgrade and removed 2.9.10.

I am seeing some side effects, when i run simple ansible commands. I will post them separately for feedback.

Thanks
