2016-12-07 16:36:24 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- hosts: all
|
2017-02-15 18:04:28 +00:00
|
|
|
vars_prompt:
|
|
|
|
name: "reset_confirmation"
|
|
|
|
prompt: "Are you sure you want to reset cluster state? Type 'yes' to reset your cluster."
|
|
|
|
default: "no"
|
|
|
|
private: no
|
|
|
|
|
|
|
|
pre_tasks:
|
|
|
|
- name: check confirmation
|
2017-02-17 21:22:34 +00:00
|
|
|
fail:
|
|
|
|
msg: "Reset confirmation failed"
|
2017-02-15 18:04:28 +00:00
|
|
|
when: reset_confirmation != "yes"
|
|
|
|
|
2016-12-07 16:36:24 +00:00
|
|
|
roles:
|
2017-06-16 16:18:35 +00:00
|
|
|
- { role: kubespray-defaults}
|
2016-12-07 16:36:24 +00:00
|
|
|
- { role: reset, tags: reset }
|