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:
parent
fbd1ffb822
commit
2a81aa2c2d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue