diff options
| -rw-r--r-- | ansible/roles/haproxy/templates/haproxy.cfg.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2 index da43239da..637cb1ce1 100644 --- a/ansible/roles/haproxy/templates/haproxy.cfg.j2 +++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2 @@ -14,7 +14,7 @@ defaults timeout server 1m timeout check 10s -listen stats :{{ haproxy_stats_port }} +listen stats {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}:{{ haproxy_stats_port }} mode http stats enable stats uri / |
