Merge "Generic inventory and playbook"

This commit is contained in:
Zuul 2022-11-30 19:38:05 +00:00 committed by Gerrit Code Review
commit d2249b70e2
2 changed files with 10 additions and 0 deletions

View File

@ -4,4 +4,13 @@
# 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
# Contents from ansible-runner entrypoint

View File

@ -12,6 +12,7 @@ tcib_actions:
# to the tcib file so the subsequent image let the operator set temporary permissions
# on the openshift uid for ansible to work.
- run: chmod g=u /etc/passwd /etc/group
- run: chmod -R 777 /usr/share/ansible
- workdir: /usr/share/ansible/roles
- run: >-
if [ -f "$TRIPLEO_ANSIBLE_REQ" ]; then