ansible/changelogs/fragments/interpreter_discovery.yaml
Matt Davis 4d3a6123d5
Python interpreter discovery (#50163)
* Python interpreter discovery

* No longer blindly default to only `/usr/bin/python`
* `ansible_python_interpreter` defaults to `auto_legacy`, which will discover the platform Python interpreter on some platforms (but still favor `/usr/bin/python` if present for backward compatibility). Use `auto` to always use the discovered interpreter, append `_silent` to either value to suppress warnings.
* includes new doc utility method `get_versioned_doclink` to generate a major.minor versioned doclink against docs.ansible.com (or some other config-overridden URL)

* docs revisions for python interpreter discovery

(cherry picked from commit 5b53c0012ab7212304c28fdd24cb33fd8ff755c2)

* verify output on some distros, cleanup
2019-02-27 23:52:02 -08:00

5 lines
413 B
YAML

major_changes:
- Python interpreter discovery - The first time a Python module runs on a target, Ansible will attempt to discover the
proper default Python interpreter to use for the target platform/version (instead of immediately defaulting to
``/usr/bin/python``). You can override this behavior by setting ``ansible_python_interpreter`` or via config. (see
https://github.com/ansible/ansible/pull/50163)