From 0b0661cae2c1032d4eb975c83733ed24e62d397c Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Mon, 14 Mar 2016 13:22:24 +0100
Subject: [PATCH] Bug fix and reverse proxy

---
 templates/haproxy_cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/haproxy_cfg b/templates/haproxy_cfg
index 22f5bb4..ebd32bb 100644
--- a/templates/haproxy_cfg
+++ b/templates/haproxy_cfg
@@ -99,7 +99,7 @@ backend backend_{{host}}
 {% if varnish_host|default(false) %}
 
 backend backend_varnish
-{% if varnish_host == inventory_host %}
+{% if varnish_host == inventory_hostname %}
   server varnish 127.0.0.1:6081 maxconn 32
 {% else %}
   server varnish {{ hostvars[varnish_host]['static_ipv4']|default(hostvars[varnish_host]['ansible_default_ipv4']['address']) }}:6081 maxconn 32
-- 
GitLab