Skip to content
Snippets Groups Projects
Commit cf4cfb70 authored by jurgenhaas's avatar jurgenhaas
Browse files

Support for SSL certs in Drupal config without LetsEncrypt

parent 808b765c
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,13 @@
notify:
- "Apache | Restart Apache"
- name: "Apache install SSL certificates"
copy:
src='{{inventory_dir}}/files/ssl/{{ item.file }}'
dest='/etc/ssl/private'
with_items: '{{ drupal_domain.certs|default([]) }}'
notify: "Apache | Restart Apache"
- block:
- name: "Ensure Password Directory"
......
......@@ -105,7 +105,9 @@
SSLCertificateKeyFile /etc/letsencrypt/live/{{ drupal_domain.domain }}/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/{{ drupal_domain.domain }}/chain.pem
{% else %}
# TODO: We should allow cert definition per domain
{% for cert in drupal_domain.certs %}
{{ cert.type }} /etc/ssl/private/{{ cert.file }}
{% endfor %}
{% endif %}
{% endif %}
</VirtualHost>
......@@ -141,7 +143,9 @@
SSLCertificateKeyFile /etc/letsencrypt/live/{{ drupal_domain.domain }}/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/{{ drupal_domain.domain }}/chain.pem
{% else %}
# TODO: We should allow cert definition per domain
{% for cert in drupal_domain.certs %}
{{ cert.type }} /etc/ssl/private/{{ cert.file }}
{% endfor %}
{% endif %}
{% endif %}
</VirtualHost>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment