projects
/
ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make unbound dependency for postfix optional
[ansible.git]
/
roles
/
apache
/
templates
/
000-default.conf
diff --git
a/roles/apache/templates/000-default.conf
b/roles/apache/templates/000-default.conf
index 8865a0ac29fb5f088210cf38e845f50bb146e02f..23f6f5e4ce817ed2256e00ee7ef39ab0afd96746 100644
(file)
--- a/
roles/apache/templates/000-default.conf
+++ b/
roles/apache/templates/000-default.conf
@@
-2,7
+2,9
@@
<VirtualHost *:80>
Redirect temp / https://{{ apache.default_host }}/
</VirtualHost>
<VirtualHost *:80>
Redirect temp / https://{{ apache.default_host }}/
</VirtualHost>
+{% if 'letsencrypt' in group_names %}
<VirtualHost *:443>
Use SSL letsencrypt/live
Redirect temp / https://{{ apache.default_host }}/
</VirtualHost>
<VirtualHost *:443>
Use SSL letsencrypt/live
Redirect temp / https://{{ apache.default_host }}/
</VirtualHost>
+{% endif %}