Debian Codegraph @

ansible_collections/google/cloud/tests/integration/targets/connection_plugin/runme.sh

raw
1 #!/usr/bin/env bash
2
3 set -eux
4
5 # test infra
6 ansible-playbook playbooks/setup.yml "$@"
7
8 export ANSIBLE_INVENTORY=test.gcp_compute.yml
9
10 ansible-inventory --graph
11
12 RC=0
13 # we want to run teardown regardless of playbook exit status, so catch the
14 # exit code of ansible-playbook manually
15 set +e
16 ansible-playbook -vvvvv playbooks/test.yml "$@"
17 RC=$?
18 set -e
19
20 unset ANSIBLE_INVENTORY
21
22 # delete test infra
23 ansible-playbook playbooks/teardown.yml "$@"
24
25 exit $RC