X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/37172332242967cf211f16c179c2a69135aa9b52..4aa3d130fde5af8dc1cd3e3e17b63d94f36b8003:/roles/apache/templates/000-default.conf?ds=sidebyside diff --git a/roles/apache/templates/000-default.conf b/roles/apache/templates/000-default.conf index 8865a0a..0d68ad6 100644 --- a/roles/apache/templates/000-default.conf +++ b/roles/apache/templates/000-default.conf @@ -1,8 +1,14 @@ # redirect all undefined virtual hosts to {{ apache.default_host }} +{% if 'letsencrypt' in group_names %} Redirect temp / https://{{ apache.default_host }}/ +{% else %} + Redirect temp / http://{{ apache.default_host }}/ +{% endif %} +{% if 'letsencrypt' in group_names %} Use SSL letsencrypt/live Redirect temp / https://{{ apache.default_host }}/ +{% endif %}