On Thu, Feb 22, 2024 at 10:13 PM Prady A <[email protected]> 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAOCN9ry4Hm8Di%2B-uAS5MyiW5tQbZjXabFu4hR3XvvTc3kYSfLw%40mail.gmail.com.

Reply via email to