Fixed SSL issues on local installation

This commit is contained in:
2020-01-04 00:14:02 +01:00
parent 6f0ad37dcf
commit 3d5b1460f7
3 changed files with 29 additions and 54 deletions
+2 -12
View File
@@ -6,15 +6,6 @@
owner: root
group: root
mode: 0644
when: ansible_domain != 'dev'
- name: add development collabora http site
template:
src: etc/apache2/sites-available/dev.conf.j2
dest: /etc/apache2/sites-available/{{ ansible_domain }}.conf
owner: root
group: root
mode: 0644
when: ansible_domain == 'dev'
- name: disable default site and enable collabora site
block:
- name: disable default site
@@ -23,11 +14,12 @@
- name: enable collabora site
command:
cmd: a2ensite {{ ansible_domain }}.conf
notify: reload apache
- name: run certbot
command:
cmd: certbot --apache --non-interactive --keep-until-expiring --no-eff-email --email {{ admin_mail }} --redirect --renew-with-new-domains --agree-tos -d {{ ansible_domain }}
when: ansible_domain != 'dev'
- include: ssl-dev.yml
when: ansible_domain == 'dev'
- name: add collabora https site
template:
src: etc/apache2/sites-available/ansible_domain-le-ssl.conf.j2
@@ -35,9 +27,7 @@
owner: root
group: root
mode: 0644
when: ansible_domain != 'dev'
- name: enable collabora https site
command:
cmd: a2ensite {{ ansible_domain }}-le-ssl.conf
when: ansible_domain != 'dev'
notify: restart apache