From 408b4b1efa01fa26d1d572a7d425fd83ab76870d Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Thu, 24 Mar 2016 17:32:24 +0100 Subject: [PATCH] General improvements --- templates/haproxy_cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/haproxy_cfg b/templates/haproxy_cfg index 3394742..edd99a8 100644 --- a/templates/haproxy_cfg +++ b/templates/haproxy_cfg @@ -126,7 +126,7 @@ backend backend_varnish {% if varnish_host == inventory_hostname %} server varnish 127.0.0.1:6081 maxconn 1000 {% else %} - server varnish {{ hostvars[varnish_host]['static_ipv4']|default(hostvars[varnish_host]['ansible_default_ipv4']['address']) }}:6081 maxconn 1000 + server varnish {{ varnish_host_ip|default('') }}:6081 maxconn 1000 {% endif %} {% endif %} -- GitLab