Use python2 for ansible on remote hosts
Change-Id: Ib67d514d396ab7360e0d146e6f6d1743bd2c1284
diff --git a/zuul/executor/server.py b/zuul/executor/server.py
index 500e5cf..c14625b 100644
--- a/zuul/executor/server.py
+++ b/zuul/executor/server.py
@@ -1164,6 +1164,8 @@
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,