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

Default to python3 on Debian 10 #63097

Merged
merged 4 commits into from Nov 14, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/ansible/config/base.yml
Expand Up @@ -1450,6 +1450,8 @@ INTERPRETER_PYTHON_DISTRO_MAP:
centos: &rhelish
'6': /usr/bin/python
'8': /usr/libexec/platform-python
debian:
'9': /usr/bin/python3
johnbui423 marked this conversation as resolved.
Show resolved Hide resolved
fedora:
'23': /usr/bin/python3
redhat: *rhelish
Expand Down
Expand Up @@ -111,6 +111,12 @@
- ansible_facts['ansible_bogus_interpreter'] | default('nope') == 'nope'
- ansible_facts['discovered_interpreter_bogus'] | default('nope') == 'nope'

- name: debian assertions
assert:
that:
- auto_out.ansible_facts.discovered_interpreter_python == '/usr/bin/python3'
when: distro == 'debian' and distro_version is version('9', '>=')
johnbui423 marked this conversation as resolved.
Show resolved Hide resolved

- name: fedora assertions
assert:
that:
Expand Down