Upgrade Ansible from 2.9.10 to 2.9.11 on RHEL8

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

try

$ sudo subscription-manager repos --enable ansible-2.9-for-rhel-8-x86_64-rpms

and

$ sudo dnf upgrade ansible

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

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

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

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