Use python2 for ansible on remote hosts

Change-Id: Ib67d514d396ab7360e0d146e6f6d1743bd2c1284
This commit is contained in:
Monty Taylor 2017-06-15 18:39:34 -05:00
parent 1cfc946297
commit 776ad18ce5
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 2 additions and 0 deletions

View File

@ -1164,6 +1164,8 @@ class AnsibleJob(object):
def prepareAnsibleFiles(self, args):
all_vars = dict(args['vars'])
# TODO(mordred) Hack to work around running things with python3
all_vars['ansible_python_interpreter'] = '/usr/bin/python2'
all_vars['zuul']['executor'] = dict(
hostname=self.executor_server.hostname,
src_root=self.jobdir.src_root,