aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-04-21 17:01:25 +0000
committerGerrit Code Review <review@openstack.org>2020-04-21 17:01:25 +0000
commit5273828fae0f3c8b8001efd13faf2fb80d2034e6 (patch)
tree45bd74923c88cf07ca6dfe6c8b1ea83ba512cba2 /tests
parent7a34f82a608d488dc10f46be9ff146ab80d08360 (diff)
parent284f492861835a9616eb53a65a9648e415388cc9 (diff)
downloadkolla-ansible-5273828fae0f3c8b8001efd13faf2fb80d2034e6.tar.gz
kolla-ansible-5273828fae0f3c8b8001efd13faf2fb80d2034e6.zip
Merge "Remove support for Python 2 on the host"
Diffstat (limited to 'tests')
-rw-r--r--tests/templates/globals-default.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/templates/globals-default.j2 b/tests/templates/globals-default.j2
index dc4cbf844..2dc8b86e6 100644
--- a/tests/templates/globals-default.j2
+++ b/tests/templates/globals-default.j2
@@ -1,4 +1,10 @@
---
+{% if ansible_os_family == 'Debian' %}
+# Force the use of python3 on Debian and Ubuntu remote hosts. These distros
+# typically have an unversioned Python interpreter which links to python2.7.
+ansible_python_interpreter: /usr/bin/python3
+{% endif %}
+
kolla_base_distro: "{{ base_distro }}"
kolla_install_type: "{{ install_type }}"
network_interface: "{{ api_interface_name }}"