Skip to content
Snippets Groups Projects
Commit c00e1be4 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "CI: Use auto-detected python interpreter except on CentOS 7"

parents 4ac7f6f3 5b38fbfc
No related branches found
No related tags found
No related merge requests found
---
# Force the use of python2 on Ubuntu/Debian and CentOS7 remote hosts. This is
# necessary for delegate_to: localhost, which will otherwise use the local
# python interpreter (python3). On CentOS 7, that fails due to a lack of
# python3 bindings for SELinux. https://bugs.centos.org/view.php?id=16389
ansible_python_interpreter: /usr/bin/python{{ '2' if ansible_os_family != 'RedHat' or ansible_distribution_major_version == '7' else '3' }}
{% if ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7' %}
# Force the use of python2 on CentOS7 remote hosts. This is necessary for
# delegate_to: localhost, which will otherwise use the local python interpreter
# (python3). On CentOS 7, that fails due to a lack of python3 bindings for
# SELinux. https://bugs.centos.org/view.php?id=16389
ansible_python_interpreter: /usr/bin/python2
{% endif %}
kolla_base_distro: "{{ base_distro }}"
kolla_install_type: "{{ install_type }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment