Merge "Reload haproxy configuration when config changes"
This commit is contained in:
commit
60d4a1bdd3
4
playbooks/roles/haproxy/handlers/main.yaml
Normal file
4
playbooks/roles/haproxy/handlers/main.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
- name: Reload haproxy
|
||||||
|
shell:
|
||||||
|
cmd: docker-compose kill -s HUP haproxy
|
||||||
|
chdir: /etc/haproxy-docker/
|
@ -19,6 +19,7 @@
|
|||||||
template:
|
template:
|
||||||
src: haproxy.cfg.j2
|
src: haproxy.cfg.j2
|
||||||
dest: /var/haproxy/etc/haproxy.cfg
|
dest: /var/haproxy/etc/haproxy.cfg
|
||||||
|
notify: Reload haproxy
|
||||||
- name: Install docker-compose
|
- name: Install docker-compose
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user