openstack-ansible/scripts/labdelete.sh
2014-08-26 18:08:15 -05:00

15 lines
380 B
Bash
Executable File

#!/usr/bin/env bash
set -e -u -v -x
LAB=${1:-"uklab16_20"}
# Go to rpc_deployment directory
pushd ../rpc_deployment
# Delete all containers
ansible-playbook -i inventory/${LAB}.yml \
-e dinv=inventory/host_vars/${LAB}.yml \
-e @inventory/overrides/${LAB}.yml \
-e group=all \
setup/destroy-containers.yml
popd