mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
tests: Allow to set Python interpreter to be used by Ansible
On some systems it is required or desired to run Ansible with a specific Python interpreter. This patch allows the selection of the Python binary to use for the pytest playbook tests by setting the environment variable IPA_PYTHON_PATH. Set it the the full path of the Python interpreter.
This commit is contained in:
committed by
Thomas Woerner
parent
68bca84481
commit
7aa9483b2c
@@ -36,6 +36,12 @@ environment variable. For example:
|
||||
IPA_SSH_PASSWORD=<ipaserver_ssh_password> IPA_SERVER_HOST=<ipaserver_host_or_ip> pytest
|
||||
```
|
||||
|
||||
If you want, or need to to set the Python interpreter to use, you must set `IPA_PYTHON_PATH`
|
||||
environment variable. For example:
|
||||
|
||||
```
|
||||
IPA_PYTHON_PATH=/usr/bin/python3.14 IPA_SERVER_HOST=<ipaserver_host_or_ip> pytest
|
||||
```
|
||||
|
||||
To run a single test use the full path with the following format:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user