diff --git a/roles/varnish/templates/varnish.f25.j2 b/roles/varnish/templates/varnish.f25.j2 index 104b28d245..622cbeb600 100644 --- a/roles/varnish/templates/varnish.f25.j2 +++ b/roles/varnish/templates/varnish.f25.j2 @@ -11,7 +11,11 @@ VARNISH_VCL_CONF=/etc/varnish/default.vcl # and IPv6 interfaces, otherwise specify a host name, an IPv4 dotted # quad, or an IPv6 address in brackets. # VARNISH_LISTEN_ADDRESS=192.168.1.5 +{% if "proxy" in inventory_hostname %} +VARNISH_LISTEN_PORT=6081 +{% else %} VARNISH_LISTEN_PORT=80 +{% endif %} # Admin interface listen address and port VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1