Merge "Generic inventory and playbook"
This commit is contained in:
commit
d2249b70e2
|
@ -4,4 +4,13 @@
|
||||||
# Expand the variables
|
# Expand the variables
|
||||||
eval "echo \"$(cat /runner/env/settings)\"" > /runner/env/settings
|
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
|
# Contents from ansible-runner entrypoint
|
||||||
|
|
|
@ -12,6 +12,7 @@ tcib_actions:
|
||||||
# to the tcib file so the subsequent image let the operator set temporary permissions
|
# to the tcib file so the subsequent image let the operator set temporary permissions
|
||||||
# on the openshift uid for ansible to work.
|
# on the openshift uid for ansible to work.
|
||||||
- run: chmod g=u /etc/passwd /etc/group
|
- run: chmod g=u /etc/passwd /etc/group
|
||||||
|
- run: chmod -R 777 /usr/share/ansible
|
||||||
- workdir: /usr/share/ansible/roles
|
- workdir: /usr/share/ansible/roles
|
||||||
- run: >-
|
- run: >-
|
||||||
if [ -f "$TRIPLEO_ANSIBLE_REQ" ]; then
|
if [ -f "$TRIPLEO_ANSIBLE_REQ" ]; then
|
||||||
|
|
Loading…
Reference in New Issue