mirror of https://github.com/easzlab/kubeasz.git
fix 删除节点role引用错误
parent
2e4e30eac3
commit
be6f0034d5
|
@ -62,8 +62,8 @@
|
|||
when: "ETCD_ID.stdout != ''"
|
||||
|
||||
- name: clean etcd {{ ETCD_TO_DEL }}
|
||||
shell: "ansible-playbook -i {{ base_dir }}/clusters/{{ CLUSTER }}/hosts \
|
||||
{{ base_dir }}/roles/clean/clean_node.yml \
|
||||
shell: "cd {{ base_dir }} && ansible-playbook -i clusters/{{ CLUSTER }}/hosts \
|
||||
roles/clean/clean_node.yml \
|
||||
-e NODE_TO_CLEAN={{ ETCD_TO_DEL }} \
|
||||
-e DEL_ETCD=yes >> /tmp/ansible-`date +'%Y%m%d%H%M%S'`.log 2>&1 \
|
||||
|| echo 'data not cleaned on {{ ETCD_TO_DEL }}'"
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
#ignore_errors: true
|
||||
|
||||
- name: clean node {{ NODE_TO_DEL }}
|
||||
shell: "ansible-playbook -i {{ base_dir }}/clusters/{{ CLUSTER }}/hosts \
|
||||
{{ base_dir }}/roles/clean/clean_node.yml \
|
||||
shell: "cd {{ base_dir }} && ansible-playbook -i clusters/{{ CLUSTER }}/hosts \
|
||||
roles/clean/clean_node.yml \
|
||||
-e NODE_TO_CLEAN={{ NODE_TO_DEL }} \
|
||||
-e DEL_NODE=yes \
|
||||
-e DEL_LB=yes >> /tmp/ansible-`date +'%Y%m%d%H%M%S'`.log 2>&1 \
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
#ignore_errors: true
|
||||
|
||||
- name: clean node {{ NODE_TO_DEL }}
|
||||
shell: "ansible-playbook -i {{ base_dir }}/clusters/{{ CLUSTER }}/hosts \
|
||||
{{ base_dir }}/roles/clean/clean_node.yml \
|
||||
shell: "cd {{ base_dir }} && ansible-playbook -i clusters/{{ CLUSTER }}/hosts \
|
||||
roles/clean/clean_node.yml \
|
||||
-e NODE_TO_CLEAN={{ NODE_TO_DEL }} \
|
||||
-e DEL_MASTER=yes \
|
||||
-e DEL_NODE=yes \
|
||||
|
|
Loading…
Reference in New Issue