Skip to content

Commit 0c2227e

Browse files
Greg RundlettGreg Rundlett
authored andcommitted
Make HAProxy work with no IPv6; fixes issue #18
1 parent ec0f9a6 commit 0c2227e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/roles/haproxy/templates/haproxy.cfg.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ defaults
4646

4747
frontend www-http
4848
bind *:80
49-
{% if ansible_default_ipv6.address | length > 0 -%}
49+
{% if ansible_default_ipv6 | length > 0 -%}
5050
bind {{ ansible_default_ipv6.address }}:80
5151
{%- endif %}
5252

@@ -55,7 +55,7 @@ frontend www-http
5555

5656
frontend www-https
5757
bind *:443 ssl crt /etc/haproxy/certs/
58-
{% if ansible_default_ipv6.address | length > 0 -%}
58+
{% if ansible_default_ipv6 | length > 0 -%}
5959
# Create an AAAA record in DNS using the IP below to IPv6 enable your wiki
6060
bind {{ ansible_default_ipv6.address }}:443 ssl crt /etc/haproxy/certs/
6161
{%- endif %}

0 commit comments

Comments
 (0)