diff --git a/playbooks/roles/haproxy/templates/haproxy.cfg.j2 b/playbooks/roles/haproxy/templates/haproxy.cfg.j2 index 5d35502b63..1c31d07859 100644 --- a/playbooks/roles/haproxy/templates/haproxy.cfg.j2 +++ b/playbooks/roles/haproxy/templates/haproxy.cfg.j2 @@ -27,9 +27,10 @@ listen {{ listener.name }} mode tcp balance source option tcplog + option tcp-check {% for server in listener.servers %} - server {{ server.name }} {{ server.address }} + server {{ server.name }} {{ server.address }} check {% endfor %} {% endfor %}