Ansible 2.8 will work on RHEL8 with python 3.6.

160 views
Skip to first unread message

sathish subramani

unread,
Jun 29, 2022, 5:34:46 AM6/29/22
to Ansible Project
Hi Team,

Ansible 2.8 will work on RHEL8 with python 3.6.


Thanks and Regards,
S Sathish

Nico Kadel-Garcia

unread,
Jun 29, 2022, 6:44:27 AM6/29/22
to ansible...@googlegroups.com
On Wed, Jun 29, 2022 at 5:34 AM sathish subramani
<ssathi...@gmail.com> wrote:
>
> Hi Team,
>
> Ansible 2.8 will work on RHEL8 with python 3.6.
>
> Reference : https://github.com/ansible/ansible/tree/stable-2.8

Why would you want to? Why would you not use the available
ansible-core 2.12 RPM?

Let's keep "ansible" and "ansible-core" straight, by the way. Ansible
got re factored some years back, and what's in the github repo called
"ansible" is packaged as "ansible-core" over at pypi.org, even though
it's python modules are all referred to as "ansible" modules, and the
tarball should really be called "ansible". The package now called
"ansible" contains not a single line of those modules or the
executable tools. It's a collection of more than 100 third-party
ansible galaxy collection modules, assembled by tools at
https://github.com/ansible-community/ansible-build-dat, and the python
module directory in which they are installed is called
"ansible_collections" just as the tarball should be called
"ansible_collections" over at pypi.org.

This comes up often enough that it's a sensitive subject, and the
developers are probably pretty tired of hearing that the labels are so
consistently confusing.

sathish subramani

unread,
Jul 1, 2022, 6:16:30 AM7/1/22
to Ansible Project
Hi Team,

Currently we are using ansible 2.8 on top of RHEL 7 with consist of python2.7

we need to understand ansible 2.8 will work on python3.6 system(RHEL 8) or it will work only on python2.7 system(RHEL7).

Thanks and Regards,
S Sathish

Luca 'remix_tj' Lorenzetto

unread,
Jul 1, 2022, 6:32:54 AM7/1/22
to ansible...@googlegroups.com
Hello Satish,

this was reported on ansible 2.7 documentation:

Currently Ansible can be run from any machine with Python 2 (version 2.7) or Python 3 (versions 3.5 and higher) installed.

Anyway i suggest you to switch to ansible 2.9 which is the latest supported version of ansible 2.x branch. Migrating from 2.8 is not hard.

Luca


Luca

--
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/5df98ada-2c99-4106-a99d-0df46c7dfab2n%40googlegroups.com.


--
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)
 
Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , <lorenze...@gmail.com>

sathish subramani

unread,
Jul 1, 2022, 6:45:51 AM7/1/22
to Ansible Project
Thanks Luca for below clarity.

While checking ansible 2.9 already "Unmaintained (end of life)" , how we are saying ansible 2.9 is latest supported version of ansible 2.x branch.


Thanks and Regards,
S Sathish

Luca 'remix_tj' Lorenzetto

unread,
Jul 1, 2022, 7:58:09 AM7/1/22
to ansible...@googlegroups.com
Hello,

i was not up to date with community deprecation of 2.9. I'm using ansible 2.9 from redhat 7.

Luca

Brian Coca

unread,
Jul 1, 2022, 2:45:26 PM7/1/22
to Ansible Project
ansbile-core 2.13 is the latest version as of this post.


--
----------
Brian Coca

sathish subramani

unread,
Jul 2, 2022, 9:40:22 PM7/2/22
to Ansible Project
Hi Brian/Team,

In RHEL 8.6 come with  python3.6 as default with Long term support. As application system we need to stick with long term support package.

As per ansible-core 2.13 requirement sheet dependencies Python 3.8+ support required is mentioned. 

our question ansible-core 2.13 will able to compile, build ansible-core rpm and execute ansible functionality using python3.6 will work?  


Python3 support document below link it say ansible2.5 onward support python3 with version of  Python 3.5 or greater. 



Thanks and Regards,
S Sathish

Nico Kadel-Garcia

unread,
Jul 3, 2022, 7:39:23 AM7/3/22
to ansible...@googlegroups.com
On Sat, Jul 2, 2022 at 8:40 PM sathish subramani <ssathi...@gmail.com> wrote:
>
> Hi Brian/Team,
>
> In RHEL 8.6 come with python3.6 as default with Long term support. As application system we need to stick with long term support package.
>
> As per ansible-core 2.13 requirement sheet dependencies Python 3.8+ support required is mentioned.
>
> our question ansible-core 2.13 will able to compile, build ansible-core rpm and execute ansible functionality using python3.6 will work?
>
> https://github.com/ansible/ansible/blob/stable-2.13/requirements.txt

It can be easily built with "pip3.8 install --user ansible-core"
Compiling it as an RPM is.... notably harder, because it relies on
jinja2 >= 3.0.0, and building up the dependency chain as RPMs is...
well, it's painful. I publish RPM building tools over at
https://github.com/nkadel/ansiblerepo/, and you're welcome to play
with them. The full suite of dependencies being built up for Fedora
is.... much, much larger, because someone elected to add "pywinrm",
which has a very large dependency chain.

> Python3 support document below link it say ansible2.5 onward support python3 with version of Python 3.5 or greater.
>
> https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html

Those directions do not install the most current release of
ansible-core, because they use the default python3 and install
somewhat older versions. It's confusing.

> Thanks and Regards,
> S Sathish
>
> On Saturday, July 2, 2022 at 12:15:26 AM UTC+5:30 Brian Coca wrote:
>>
>> ansbile-core 2.13 is the latest version as of this post.
>>
>>
>> --
>> ----------
>> Brian Coca
>>
> --
> 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/203ef4e7-d8c4-451e-ba13-7bc6b4baa5d2n%40googlegroups.com.

Brian Coca

unread,
Jul 5, 2022, 9:30:14 AM7/5/22
to Ansible Project
Also note that the 'ansible core' and the 'ansible targets' have
different dependencies, core in general requires newer python and
keeps compatibility for modules to execute on older pythons on the
target.


--
----------
Brian Coca

Nico Kadel-Garcia

unread,
Jul 5, 2022, 10:31:48 PM7/5/22
to ansible...@googlegroups.com
On Tue, Jul 5, 2022 at 8:30 AM Brian Coca <bc...@redhat.com> wrote:
>
> Also note that the 'ansible core' and the 'ansible targets' have
> different dependencies, core in general requires newer python and
> keeps compatibility for modules to execute on older pythons on the
> target.

Frankly, the current "ansible" package should never be instlalled
anywhere by default. It's not needed, at all. ansible-core contains
all the important python modules and executable tools, except for a
very bulky and unnecessary suite of roughly 100 third party modules,
only a few of which are of use on a normal ansible sysetup and each of
which can be installed more efficientlywith the ansible galaxy
collection commands.

Stick to ansiblc-core.. There are RPMs for ansibl-core 2.12 on RHEL 8
and RHEL 9, and ansible-core 2.13 can be installed with the python38
optional installation if you feel the need. I publish RPM building
tools for ansible 6 and ansible-core 2.13 over at
https://github.com/nkadel/ansiblerepo/, if you feel the need to that
upgrade in the short term, but I don't recommend it for production use
yet. ansible-core 2.13.1 upstream relies on "pywinrm", and the
dependency chain for that is a nightmare.

Nico Kadel-Garcia

> ----------
> Brian Coca
>
> --
> 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/CACVha7fMC86Ys8wvi19D%3DnZ6GVhzUeTBYLyRA5vFO19bdFC7Hg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages