Make cert availability check more robust
This commit is contained in:
parent
48a4119420
commit
9bd5d8e71e
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue