fix 增加master节点变量未定义报错

pull/334/head
gjmzj 2018-09-18 11:31:47 +08:00
parent 57ace894e1
commit 9ff1ffb220
1 changed files with 2 additions and 5 deletions

View File

@ -1,10 +1,7 @@
# 重新配置启动 haproxy # 重新配置启动 haproxy
- hosts: lb - hosts: lb
tasks: roles:
- name: 配置 haproxy - lb
template: src={{ base_dir }}/roles/lb/templates/haproxy.cfg.j2 dest=/etc/haproxy/haproxy.cfg
- name: 重启haproxy服务
shell: systemctl restart haproxy
- hosts: new-master - hosts: new-master
roles: roles: