From 4da338f0ad873db601d7347db1e8d9b37df353d2 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Tue, 6 Sep 2022 21:00:36 +0200 Subject: [PATCH] :bug: Fix template in setup-http-dehydrated when IPv6 is missing --- .../templates/apache-dehydrated.j2 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/roles/setup-http-dehydrated/templates/apache-dehydrated.j2 b/roles/setup-http-dehydrated/templates/apache-dehydrated.j2 index 8fe69d3..60076b4 100644 --- a/roles/setup-http-dehydrated/templates/apache-dehydrated.j2 +++ b/roles/setup-http-dehydrated/templates/apache-dehydrated.j2 @@ -1,4 +1,8 @@ - +{% if 'address' in ansible_default_ipv6 %} + +{% else %} + +{% endif %} ServerAdmin {{ server_admin }} ServerName {{ site_name }} ServerAlias {{ site_name }} @@ -9,7 +13,11 @@ - +{% if 'address' in ansible_default_ipv6 %} + +{% else %} + +{% endif %} ServerAdmin {{ server_admin }} ServerName {{ site_name }} ServerAlias {{ site_name }}