tripleo-common/container-images/kolla/tripleo-ansible-ee/tripleo_entrypoint.sh
jlarriba 0253c356d9 Fix tripleo_entrypoint.sh
There was an error and the last if block was not being closed.
This patch fixes that error.

Change-Id: I0d3bdb4ed4f1bc40c52289965364043c54e1f9fc
2022-12-01 10:00:52 +01:00

18 lines
510 B
Bash

#!/usr/bin/env bash
# Adding tripleo ansible-runner specific scripts here
# Expand the variables
eval "echo \"$(cat /runner/env/settings)\"" > /runner/env/settings
if [ -n "$RUNNER_INVENTORY" ]; then
echo "---" > /runner/inventory/inventory.yaml
echo "$RUNNER_INVENTORY" >> /runner/inventory/inventory.yaml
fi
if [ -n "$RUNNER_PLAYBOOK" ]; then
echo "---" > /runner/project/playbook.yaml
echo "$RUNNER_PLAYBOOK" >> /runner/project/playbook.yaml
fi
# Contents from ansible-runner entrypoint