Ansible launcher: install libselinux-python if necessary

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

Change-Id: Ic1c2a60ab87ad96a0b2b050c6f568d3946b30466
This commit is contained in:
James E. Blair 2016-05-25 08:37:26 -07:00
parent fbd1ffb822
commit 2a81aa2c2d
1 changed files with 5 additions and 0 deletions

View File

@ -777,6 +777,11 @@ class NodeWorker(object):
state='directory')) state='directory'))
tasks.append(task) 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', []): for builder in jjb_job.get('builders', []):
if 'shell' in builder: if 'shell' in builder:
tasks.extend(self._makeBuilderTask(jobdir, builder, tasks.extend(self._makeBuilderTask(jobdir, builder,