2019-02-23 09:23:41 -08:00
|
|
|
- name: Destroy infrastructure
|
2019-06-05 06:04:33 -07:00
|
|
|
hosts: all
|
2019-02-23 09:23:41 -08:00
|
|
|
roles:
|
2020-02-05 04:37:53 -08:00
|
|
|
- { role: destroy, when: "confirmation|bool == True and inventory_hostname == groups[group_names[0]][0]" }
|
2019-02-23 09:23:41 -08:00
|
|
|
vars_prompt:
|
|
|
|
- name: "confirmation"
|
|
|
|
prompt: "Are you sure you want to destroy all the infra?"
|
|
|
|
default: False
|