tenks/ansible/teardown.yml
Will Miller c0227d29b4 Move absent node pruning to cleanup section
Add a cleanup_state.yml playbook that is run after every deployment and
teardown. It will remove any nodes marked as 'absent' from the state
file, by calling schedule.py with `prune_only=True`.
2018-09-18 16:28:34 +00:00

31 lines
699 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
- name: Perform Ironic node deconfiguration
import_playbook: node_enrolment.yml
- 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