mirror of https://github.com/easzlab/kubeasz.git
29 lines
557 B
YAML
29 lines
557 B
YAML
#
|
|
- import_tasks: clean_master.yml
|
|
when: 'DEL_MASTER == "yes"'
|
|
|
|
- import_tasks: clean_node.yml
|
|
when: 'DEL_NODE == "yes"'
|
|
|
|
- import_tasks: clean_etcd.yml
|
|
when: 'DEL_ETCD == "yes"'
|
|
|
|
- import_tasks: clean_lb.yml
|
|
when: 'DEL_LB == "yes"'
|
|
|
|
- import_tasks: clean_chrony.yml
|
|
when: 'DEL_CHRONY == "yes"'
|
|
|
|
- name: clean 'ENV PATH'
|
|
lineinfile:
|
|
dest: ~/.bashrc
|
|
state: absent
|
|
regexp: '{{ item }}'
|
|
with_items:
|
|
- 'kubeasz'
|
|
- 'helm completion'
|
|
- 'kubectl completion'
|
|
- 'crictl completion'
|
|
- 'HELM_TLS_ENABLE'
|
|
when: 'DEL_ENV == "yes"'
|