2016-12-07 16:36:24 +00:00
|
|
|
---
|
2020-04-22 20:33:44 +00:00
|
|
|
- name: Check ansible version
|
|
|
|
import_playbook: ansible_version.yml
|
2016-12-07 16:36:24 +00:00
|
|
|
|
2021-04-29 12:20:50 +00:00
|
|
|
- name: Ensure compatibility with old groups
|
|
|
|
import_playbook: legacy_groups.yml
|
2021-03-24 00:26:05 +00:00
|
|
|
|
2019-03-26 09:59:16 +00:00
|
|
|
- hosts: bastion[0]
|
|
|
|
gather_facts: False
|
2021-02-23 17:44:02 +00:00
|
|
|
environment: "{{ proxy_disable_env }}"
|
2019-03-26 09:59:16 +00:00
|
|
|
roles:
|
|
|
|
- { role: kubespray-defaults}
|
|
|
|
- { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
|
|
|
|
|
2020-04-17 23:23:36 +00:00
|
|
|
- name: Gather facts
|
|
|
|
import_playbook: facts.yml
|
2017-12-11 12:49:21 +00:00
|
|
|
|
2021-04-29 12:20:50 +00:00
|
|
|
- hosts: etcd:k8s_cluster:calico_rr
|
2020-04-17 23:23:36 +00:00
|
|
|
gather_facts: False
|
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"
|
|
|
|
|
2021-02-23 17:44:02 +00:00
|
|
|
environment: "{{ proxy_disable_env }}"
|
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 }
|