diff options
author | Matt Clay <mclay@redhat.com> | 2020-02-28 20:37:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 20:37:50 -0800 |
commit | 7c8b046b5fac7342fcf7882d4c84efc089e7866f (patch) | |
tree | 22c3b9ac4cb671951e7f20457269f63c1caf91f8 /test/integration/targets/incidental_inventory_docker_swarm/runme.sh | |
parent | 04666c9fa1eb2f367cf3b1c9c6853828bdcb813f (diff) | |
download | ansible-7c8b046b5fac7342fcf7882d4c84efc089e7866f.tar.gz |
Fourth batch of incidental integration tests. (#67873)
* Copy in incidental posix tests.
* Update incidental test aliases.
* Update target names.
* Add support plugins.
* Fix paths.
* Update ignores.
* Update integration-aliases sanity test.
* Add incidental tests to CI.
Diffstat (limited to 'test/integration/targets/incidental_inventory_docker_swarm/runme.sh')
-rwxr-xr-x | test/integration/targets/incidental_inventory_docker_swarm/runme.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/integration/targets/incidental_inventory_docker_swarm/runme.sh b/test/integration/targets/incidental_inventory_docker_swarm/runme.sh new file mode 100755 index 0000000000..e2ba6869e8 --- /dev/null +++ b/test/integration/targets/incidental_inventory_docker_swarm/runme.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +[[ -n "$DEBUG" || -n "$ANSIBLE_DEBUG" ]] && set -x + +set -euo pipefail + +cleanup() { + echo "Cleanup" + ansible-playbook playbooks/swarm_cleanup.yml + echo "Done" + exit 0 +} + +trap cleanup INT TERM EXIT + +echo "Setup" +ANSIBLE_ROLES_PATH=.. ansible-playbook playbooks/swarm_setup.yml + +echo "Test docker_swarm inventory 1" +ansible-playbook -i inventory_1.docker_swarm.yml playbooks/test_inventory_1.yml + +echo "Test docker_swarm inventory 2" +ansible-playbook -i inventory_2.docker_swarm.yml playbooks/test_inventory_2.yml |