|
@ -34,14 +34,14 @@ |
|
|
- { role: remove-node/pre-remove, tags: pre-remove } |
|
|
- { role: remove-node/pre-remove, tags: pre-remove } |
|
|
|
|
|
|
|
|
- hosts: "{{ node | default('kube-node') }}" |
|
|
- hosts: "{{ node | default('kube-node') }}" |
|
|
gather_facts: no |
|
|
|
|
|
|
|
|
gather_facts: yes |
|
|
roles: |
|
|
roles: |
|
|
- { role: kubespray-defaults } |
|
|
- { role: kubespray-defaults } |
|
|
- { role: reset, tags: reset, when: reset_nodes|default(True) } |
|
|
- { role: reset, tags: reset, when: reset_nodes|default(True) } |
|
|
|
|
|
|
|
|
# Currently cannot remove first master or etcd |
|
|
# Currently cannot remove first master or etcd |
|
|
- hosts: "{{ node | default('kube-master[1:]:etcd[:1]') }}" |
|
|
- hosts: "{{ node | default('kube-master[1:]:etcd[:1]') }}" |
|
|
gather_facts: no |
|
|
|
|
|
|
|
|
gather_facts: yes |
|
|
roles: |
|
|
roles: |
|
|
- { role: kubespray-defaults } |
|
|
- { role: kubespray-defaults } |
|
|
- { role: remove-node/post-remove, tags: post-remove } |
|
|
- { role: remove-node/post-remove, tags: post-remove } |