On Thu, Feb 22, 2024 at 10:13 PM Prady A <
pradyu...@gmail.com> wrote:
>
> Thank you.. I ll try to use the modules instead.
> And we run ansible with the root user ..
> also when I rebooting my server manually the default python link is getting updated to pyhon3
>
> Now I raised the issue to RH let’s see what comes up
>
> Thanks again
Well, yes. A lot of system tools, especially rpm itself, got updated
to use python3 and the updated /usr/bin/python link because python2 is
*obsolete* and no longer supported. Frankly, by the time you work out
trying nto do the update in place, you could make a full backup of the
whole OS to some separate location, done a clean installation, and
recovered necessary configurations from the backup.
Doing that kind of remotely managed update as a remotely triggered
operation is.... pretty dangerous. There are a lot of ways around it.
My favorite, from long before ansible, was to pick an underused
partition, copy everything I might care about into *that*, and
completely re-install the OS with optional re-partitioning and file
system creation with newer tools along the way.