mistral-executor: handle ansible-playbook-3

ansible-playbook-3 is needed where Ansible is run, in the Mistral Executor
container. This workaround will hopefully be removed soon.

Change-Id: I831ceb84f02b01810f5d2e2c17cc21b7dac6f866
This commit is contained in:
Emilien Macchi 2019-03-05 11:32:17 -05:00
parent b9ecb23918
commit 174dcbcf8f
1 changed files with 4 additions and 0 deletions

View File

@ -476,6 +476,10 @@ RUN mkdir -p /openstack && \
RUN mkdir -p /openstack && \
ln -s /usr/share/openstack-tripleo-common/healthcheck/mistral-executor /openstack/healthcheck && \
chmod a+rx /openstack/healthcheck
# TODO(emilien) Remove once proper packaging is released for Ansible
{% if distro_python3 %}
RUN test -f /usr/bin/ansible-playbook-3 || ln -s /usr/bin/ansible-playbook /usr/bin/ansible-playbook-3
{% endif %}
USER root
RUN useradd validations
USER mistral