CI: Set zuul's ansible_python_interpreter to python2

Train, Stein & Rocky only

Zuul seems to have started setting ansible_python_interpreter to python3
on Ubuntu, which breaks our installation of kolla-ansible on Train and
earlier stable branches.

This change sets ansible_python_interpreter explicitly to python2. We
use host-vars rather than vars because zuul sets a host-var for
ansible_python_interpreter=auto, which overrides vars.

Change-Id: I9ba0d16972b31a64617461461fafaf2b436e2bdf
This commit is contained in:
Mark Goddard 2019-12-12 13:38:36 +00:00 committed by Radosław Piliszek
parent a019074748
commit d30eacff3e

View File

@ -19,6 +19,13 @@
vars:
scenario: aio
enable_core_openstack: yes
host-vars:
primary:
ansible_python_interpreter: python2
secondary1:
ansible_python_interpreter: python2
secondary2:
ansible_python_interpreter: python2
roles:
- zuul: zuul/zuul-jobs