Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Python Intepreter #1212

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rjeffman
Copy link
Member

Since RHEL 8.6 there may be an issue that prevent Ansible (ansible-core) from correctly detecting '/usr/libexec/python-platform' as the Python interpreter to use.

This patch allows 'ansible_python_interpreter' to be set both on Azure tests and on utils/run-tests.sh by setting the environment variable PYTHON_INTERPRETER.

Since RHEL 8.6, ansible-core  may not set '/usr/libexec/platform-python'
an the python interpreter, falling back to 'python3.11', which is not
supported by FreeIPA.

This patch allows to override ansible_python_interpreter as shown in

    https://access.redhat.com/solutions/6726561
This patch allow overriding Ansible's Python interpreter by setting the
enviroment variable PYTHO_INTERPRETER. This can be used to test with
different python versions, or to workaround issues like

    https://access.redhat.com/solutions/6726561
@rjeffman
Copy link
Member Author

/azp run nightly

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant