Make cert availability check more robust

This commit is contained in:
Stefan Haun 2022-07-04 14:01:33 +02:00
parent 48a4119420
commit 9bd5d8e71e

View file

@ -14,7 +14,9 @@
</ifmodule>
</VirtualHost>
<IfFile /usr/local/etc/dehydrated/certs/{{ site_name }}>
<IfFile /usr/local/etc/dehydrated/certs/{{ site_name }}/cert.pem>
<IfFile /usr/local/etc/dehydrated/certs/{{ site_name }}/privkey.pem>
<IfFile /usr/local/etc/dehydrated/certs/{{ site_name }}/chain.pem>
<VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address }}]:443>
ServerAdmin {{ server_admin }}
ServerName {{ site_name }}
@ -42,3 +44,5 @@
</ifmodule>
</VirtualHost>
</IfFile>
</IfFile>
</IfFile>