tenks/ansible/teardown.yml
Will Szumski b4bc89dfff Add a zuul job to deploy and teardown a tenks cluster
This stops short of enrolling the nodes in Ironic, but provides
some coverage of the earlier stages.

Change-Id: I48a0bafaff1555caea0a7d216ac6f6a4f11c2b55
Depends-On: https://review.openstack.org/#/c/615544/
Depends-On: https://review.openstack.org/#/c/616510/
Depends-On: https://review.openstack.org/#/c/616501/
2018-11-08 16:21:21 +00:00

33 lines
735 B
YAML

---
- hosts: all
tasks:
- name: Set command for teardown
set_fact:
cmd: teardown
- name: Schedule removal of nodes
import_playbook: schedule.yml
- name: Deregister flavors in Nova
import_playbook: flavor_registration.yml
tags: openstack
- name: Perform Ironic node deconfiguration
import_playbook: node_enrolment.yml
tags: openstack
- name: Deconfigure virtual node BMCs
import_playbook: node_bmc.yml
- name: De-instantiate nodes
import_playbook: node_instantiation.yml
- name: Deconfigure node networking
import_playbook: node_networking.yml
- name: Perform deployment host deconfiguration
import_playbook: host_setup.yml
- name: Clean up Tenks state
import_playbook: cleanup_state.yml