Ansible launcher: install libselinux-python if necessary

This is temporary until we rebuild images with the zuul-worker
dib element.

Change-Id: Ic1c2a60ab87ad96a0b2b050c6f568d3946b30466
changes/77/321077/6
James E. Blair 7 years ago
parent fbd1ffb822
commit 2a81aa2c2d
  1. 5
      zuul/launcher/ansiblelaunchserver.py

@ -777,6 +777,11 @@ class NodeWorker(object):
state='directory'))
tasks.append(task)
# TODO: remove once zuul-worker DIB element has landed
tasks.append(dict(shell="[ -f /usr/bin/yum ] && "
"sudo /usr/bin/yum install libselinux-python || "
"/bin/true"))
for builder in jjb_job.get('builders', []):
if 'shell' in builder:
tasks.extend(self._makeBuilderTask(jobdir, builder,

Loading…
Cancel
Save