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