2020-12-03 15:52:14 +01:00
|
|
|
---
|
2020-12-03 23:14:27 +01:00
|
|
|
- name: "Gateway Domain zur Zertifikatsliste hinzufügen"
|
2020-12-03 15:52:14 +01:00
|
|
|
lineinfile:
|
|
|
|
path: /etc/dehydrated/domains.txt
|
|
|
|
insertafter: "^# nextcloud"
|
|
|
|
line: "{{ nextcloud_domain }}"
|
|
|
|
# when: dehydrated_installiert
|
|
|
|
delegate_to: "{{ nextcloud_gateway }}"
|
|
|
|
|
2021-04-02 10:39:01 +02:00
|
|
|
- name: "Gateway Zertifikat erstellen"
|
2020-12-03 15:52:14 +01:00
|
|
|
command: dehydrated --cron -g
|
|
|
|
delegate_to: "{{ nextcloud_gateway }}"
|
|
|
|
|
2020-12-03 23:14:27 +01:00
|
|
|
- name: "Gateway Proxy einrichten"
|
2020-12-03 15:52:14 +01:00
|
|
|
template:
|
|
|
|
src: nginx_site.j2
|
|
|
|
dest: "/etc/nginx/sites-available/{{ nextcloud_domain }}"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
delegate_to: "{{ nextcloud_gateway }}"
|
|
|
|
|
2020-12-03 23:14:27 +01:00
|
|
|
- name: "Gateway Seite aktivieren"
|
2020-12-03 15:52:14 +01:00
|
|
|
file:
|
|
|
|
src: "/etc/nginx/sites-available/{{ nextcloud_domain }}"
|
|
|
|
dest: "/etc/nginx/sites-enabled/{{ nextcloud_domain }}"
|
|
|
|
state: link
|
|
|
|
notify: reload nginx
|
|
|
|
delegate_to: "{{ nextcloud_gateway }}"
|