🐛 Fix template in setup-http-dehydrated when IPv6 is missing
This commit is contained in:
parent
8617f84f9d
commit
4da338f0ad
1 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,8 @@
|
|||
<VirtualHost {{ ansible_default_ipv4.address }}:80 [{{ ansible_default_ipv6.address | default('::1') }}]:80>
|
||||
{% if 'address' in ansible_default_ipv6 %}
|
||||
<VirtualHost {{ ansible_default_ipv4.address }}:80 [{{ ansible_default_ipv6.address }}]:80>
|
||||
{% else %}
|
||||
<VirtualHost {{ ansible_default_ipv4.address }}:80>
|
||||
{% endif %}
|
||||
ServerAdmin {{ server_admin }}
|
||||
ServerName {{ site_name }}
|
||||
ServerAlias {{ site_name }}
|
||||
|
@ -9,7 +13,11 @@
|
|||
</VirtualHost>
|
||||
|
||||
<IfFile {{dehydrated_certs_dir}}/{{ site_name }}>
|
||||
<VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address | default('::1') }}]:80>
|
||||
{% if 'address' in ansible_default_ipv6 %}
|
||||
<VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address }}]:443>
|
||||
{% else %}
|
||||
<VirtualHost {{ ansible_default_ipv4.address }}:443>
|
||||
{% endif %}
|
||||
ServerAdmin {{ server_admin }}
|
||||
ServerName {{ site_name }}
|
||||
ServerAlias {{ site_name }}
|
||||
|
|
Loading…
Reference in a new issue