Default to python3 on Debian 10 (#63097)

This commit is contained in:
johnbui423 2019-11-14 20:52:13 +01:00 committed by Matt Martz
parent e9feea2270
commit db3994cb03
2 changed files with 8 additions and 0 deletions

View file

@ -1458,6 +1458,8 @@ INTERPRETER_PYTHON_DISTRO_MAP:
centos: &rhelish
'6': /usr/bin/python
'8': /usr/libexec/platform-python
debian:
'10': /usr/bin/python3
fedora:
'23': /usr/bin/python3
redhat: *rhelish

View file

@ -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('10', '>=')
- name: fedora assertions
assert:
that: