Ansible 2.11 and Python 3.9 Compatibility #319
Replies: 3 comments 3 replies
-
To use dnf, firewalld and selinux package one needs to use python3 interpreter. So we will have to compel the user to use python3.6 and install the same using dnf. And ansible version 2.9 or 2.10. |
Beta Was this translation helpful? Give feedback.
-
Will this be a problem moving from CentOS7 to CentOS/RockyLinux 8? We've already begun the process of being able to deploy on RHEL8 clones (see #314 and #315). Do we know if Ansible 3 has workarounds for this problem? |
Beta Was this translation helpful? Give feedback.
-
We cannot proceed with Centos7.9. The reasons are, Centos7 depends on python2.7 which has attained EOL and support for the same would be removed. Also ansible has deprecated many modules of docker, so we have to use python_interpreter3 to use those modules. So porting to Centos8 is inevitable. |
Beta Was this translation helpful? Give feedback.
-
The python38 module and versions of python higher than 3.8 does not include the same bindings to system tools -RPM, DNF, SELinux, and firewalld that are provided for the python36 module in CentOS.
As a result, playbooks handling installation of packages, adding ports to firewall and handling selinux policies throw errors.
But these modules (dnf, firewalld, selinux ) are an essential for Omnia workflow. So the users are compelled to install python3.6 using dnf on Centos.
On the Redhat site, the same is mentioned- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/using-python3_configuring-basic-system-settings
Beta Was this translation helpful? Give feedback.
All reactions