fix 删除etcd节点hosts文件不更新

pull/975/head
gjmzj 2021-01-24 09:59:19 +08:00
parent a20c5dcea4
commit 7f40494292
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@
# lineinfile is inadequate to delete lines between some specific line range
- name: remove the etcd's node entry in hosts
shell: 'sed -i "/^\[etcd/,/^\[kube-master/ {/^{{ ETCD_TO_DEL }}[^0-9]/d}" {{ base_dir }}/hosts'
shell: 'sed -i "/^\[etcd/,/^\[kube-master/ {/^{{ ETCD_TO_DEL }}[^0-9]*$/d}" {{ base_dir }}/hosts'
args:
warn: false