From 9ff1ffb22047f5624d3c7265168d1c6179a27c8f Mon Sep 17 00:00:00 2001 From: gjmzj Date: Tue, 18 Sep 2018 11:31:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=A2=9E=E5=8A=A0master=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E5=8F=98=E9=87=8F=E6=9C=AA=E5=AE=9A=E4=B9=89=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 21.addmaster.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/21.addmaster.yml b/21.addmaster.yml index 24804ea..4c54ca4 100644 --- a/21.addmaster.yml +++ b/21.addmaster.yml @@ -1,10 +1,7 @@ # 重新配置启动 haproxy - hosts: lb - tasks: - - name: 配置 haproxy - template: src={{ base_dir }}/roles/lb/templates/haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg - - name: 重启haproxy服务 - shell: systemctl restart haproxy + roles: + - lb - hosts: new-master roles: