mirror of https://github.com/easzlab/kubeasz.git
fix: 清理node时罕见错误删除hosts中其他node信息 #541
parent
0b0668b9e9
commit
fbaab4195b
|
@ -223,5 +223,5 @@
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "{{ base_dir }}/hosts"
|
dest: "{{ base_dir }}/hosts"
|
||||||
state: absent
|
state: absent
|
||||||
regexp: '{{ NODE_TO_DEL }}'
|
regexp: '^{{ NODE_TO_DEL }}$|^{{ NODE_TO_DEL }}[^0-9]'
|
||||||
connection: local
|
connection: local
|
||||||
|
|
Loading…
Reference in New Issue