Merge "CI: Use auto-detected python interpreter except on CentOS 7"
This commit is contained in:
commit
c00e1be43e
@ -1,9 +1,11 @@
|
|||||||
---
|
---
|
||||||
# Force the use of python2 on Ubuntu/Debian and CentOS7 remote hosts. This is
|
{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7' %}
|
||||||
# necessary for delegate_to: localhost, which will otherwise use the local
|
# Force the use of python2 on CentOS7 remote hosts. This is necessary for
|
||||||
# python interpreter (python3). On CentOS 7, that fails due to a lack of
|
# delegate_to: localhost, which will otherwise use the local python interpreter
|
||||||
# python3 bindings for SELinux. https://bugs.centos.org/view.php?id=16389
|
# (python3). On CentOS 7, that fails due to a lack of python3 bindings for
|
||||||
ansible_python_interpreter: /usr/bin/python{{ '2' if ansible_os_family != 'RedHat' or ansible_distribution_major_version == '7' else '3' }}
|
# SELinux. https://bugs.centos.org/view.php?id=16389
|
||||||
|
ansible_python_interpreter: /usr/bin/python2
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
kolla_base_distro: "{{ base_distro }}"
|
kolla_base_distro: "{{ base_distro }}"
|
||||||
kolla_install_type: "{{ install_type }}"
|
kolla_install_type: "{{ install_type }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user