2018-09-12 14:00:27 +00:00
|
|
|
---
|
2022-09-06 07:56:29 +02:00
|
|
|
- name: Teardown Tenks resources
|
|
|
|
hosts: all
|
2019-03-27 16:42:35 +00:00
|
|
|
tags:
|
|
|
|
- always
|
2018-09-12 14:00:27 +00:00
|
|
|
tasks:
|
2018-09-12 14:28:53 +00:00
|
|
|
- name: Set command for teardown
|
|
|
|
set_fact:
|
2018-09-12 14:00:27 +00:00
|
|
|
cmd: teardown
|
|
|
|
|
|
|
|
- name: Schedule removal of nodes
|
|
|
|
import_playbook: schedule.yml
|
|
|
|
|
|
|
|
- name: Deregister flavors in Nova
|
|
|
|
import_playbook: flavor_registration.yml
|
2018-11-07 15:24:12 +00:00
|
|
|
tags: openstack
|
2018-09-12 14:00:27 +00:00
|
|
|
|
|
|
|
- name: Perform Ironic node deconfiguration
|
|
|
|
import_playbook: node_enrolment.yml
|
2018-11-07 15:24:12 +00:00
|
|
|
tags: openstack
|
2018-09-12 14:00:27 +00:00
|
|
|
|
|
|
|
- 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
|
2018-09-18 16:28:34 +00:00
|
|
|
|
|
|
|
- name: Clean up Tenks state
|
|
|
|
import_playbook: cleanup_state.yml
|