On Sat, Jul 23, 2022 at 7:35 AM Todd Lewis <
uto...@gmail.com> wrote:
>
> This is the problem that Execution Environments allow you to avoid.
>
> Or, if you're rather more cynical, this is the type of problem that emerges due to relying on execution environments.
That's a pretty fundamental architectural issue, you're unlikely to
get a lot of traction on installing a local daemon with its own
functional python on every remote host for ansible execution.
> RHEL7 users - myself included, paying for the privilege, thanks - might feel put out that a supported operating system/distro doesn't have a path forward from python2, but in fact it does: it's "move to RHEL8 or RHEL9." I shouldn't be surprised that I can't get a Mr. Fusion adaptor for my Edsel. Technically, python3 can "be done" on RHEL7, but why put the effort into digging your technical debt hole even deeper. (And by "you" I mean "me", because I'm really arguing myself into scrapping the Edsel and getting on with life.)
It gets funnier that, when ansible makes demands for python modules
unavailable on contemporary RHEL releases, the response for providing
RPMS that include them is to violate pretty basic python packaging
guidelines for Fedora and RHEL and internalize them inside the SRPM,
with git commit labeled tarballs rather than release numbered
tarballs. Someone out there decided to get strange and ignora Fedora
guidelines. I now publish RPM update tools for those dependencies,
over at
https://github.com/nkadel/ansiblerepo.
On RHEL 7, if you really need ansible-core 2.13.2, I think we're SOL.
Building up a fresh python 3.8 or later for it is more work than most
of us need. Use RHEL 8 or CentOS 8, and use the python38 packages. And
the published ansible-core 2.12 is plenty for most uses there until,
for example, RHEL straightens out the modularity mucked up dnf
installation of the "python38-packaging" package to allow gracefully
building up the dependency suite for ansible-core 2.13. I ran into
that last week. I'm pretty unhappy about Red Hat allowing the RPM
"modularity" pecularities near any system RPMs.
> It would be easier to spin up a RHEL8 vm or an execution environment compatible with whatever version of Ansible you want to run than building and running a python3 application environment atop a RHEL7 installation. You're / I'm solving the wrong problem.
Or docker container.
"python3" isn't so much the problem. You can install with the built-in
python3 packages for RHEL 7.
sudo yum install python3-devel
sudo yum install python3-pip
pip3 install -m ansible-core # will only provide ansible-core up
to 4.11 on RHEL 7 built-in python 3.6
> --
> 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
ansible-proje...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/3c0bb1a8-19db-b866-39f3-9d4375be79c1%40gmail.com.