After setting the alternative from none to python3, we get the WARNING at each execution:
[DEPRECATION WARNING]: Distribution centos 8.7 on host master-02 should use /usr/libexec/platform-python, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible
release will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be
removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
After setting the alternative from none to python3, we get the WARNING at each execution:
as discsused in https://github.com/TOSIT-IO/tdp-collection-prerequisites/pull/76 and https://github.com/TOSIT-IO/tdp-collection-prerequisites/issues/75
This issue is documented on ansible https://docs.ansible.com/ansible/latest/reference_appendices/interpreter_discovery.html and we can migrate in advance to the default behaviour which will takes place in 2.12
The default behaviour is to use
/usr/libexec/platform-python
instead of/usr/bin/python
. This behaviour is the one we had prior to https://github.com/TOSIT-IO/tdp-collection-prerequisites/pull/76