system-config/playbooks/roles/haproxy/handlers/main.yaml
Jeremy Stanley df23d48949 Reload haproxy configuration when config changes
Add an Ansible handler to send a hangup signal through
docker-compose to the running haproxy daemon any time the task to
update its configuration fires.

Change-Id: I1946c1e7eaaa8a8e2209007b5d065dba952ec6e2
2019-07-23 16:48:23 +00:00

5 lines
108 B
YAML

- name: Reload haproxy
shell:
cmd: docker-compose kill -s HUP haproxy
chdir: /etc/haproxy-docker/