minor fix in role:ex-lb

pull/644/head
gjmzj 2019-07-17 22:48:57 +08:00
parent d0d941589e
commit 8996741419
3 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,3 @@
- hosts: ex-lb
roles:
- { role: chrony, when: "groups['chrony']|length > 0" }
- prepare
- ex-lb

View File

@ -1,9 +1,11 @@
global_defs {
router_id lb-backup-{{ inventory_hostname }}
script_user root
enable_script_security
}
vrrp_script check-haproxy {
script "killall -0 haproxy"
script "/usr/bin/killall -0 haproxy"
interval 5
weight -60
}

View File

@ -1,9 +1,11 @@
global_defs {
router_id lb-master-{{ inventory_hostname }}
script_user root
enable_script_security
}
vrrp_script check-haproxy {
script "killall -0 haproxy"
script "/usr/bin/killall -0 haproxy"
interval 5
weight -60
}