fix: 清理node时罕见错误删除hosts中其他node信息 #541

pull/552/head
gjmzj 2019-05-06 22:10:58 +08:00
parent 0b0668b9e9
commit fbaab4195b
1 changed files with 1 additions and 1 deletions

View File

@ -223,5 +223,5 @@
lineinfile:
dest: "{{ base_dir }}/hosts"
state: absent
regexp: '{{ NODE_TO_DEL }}'
regexp: '^{{ NODE_TO_DEL }}$|^{{ NODE_TO_DEL }}[^0-9]'
connection: local