forked from tombarron/RDOCloud-devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
destroy.yml
27 lines (25 loc) · 833 Bytes
/
destroy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## This playbook tears down your host VM for devstack
##
## It leaves security group, keypair, cinder volume,
## private network, and router used for the host VM
## in place on the assumption that in the most common
## case you want to tear down and rebuild the VM, in
## which case it saves time to leave these.
##
## Note that your cinder volume may have stale files
## for your new devstack after you do a teardown and
## rebuild. Clean up the contents of the volume manually
## before re-stacking since only you really know what
## you want to keep or not.
- hosts: localhost
connection: local
vars:
ansible_python_interpreter: "/usr/bin/env python3"
vars_files:
- keys.yml
tasks:
- name: destroy the devstack host VM
os_server:
name: devstack_host_vm
state: absent
wait: yes