Erstelle Zertifikat nur, falls es Änderungen gab

This commit is contained in:
phil 2021-06-26 02:43:46 +02:00
parent 8d720be3f7
commit 2b518c2b2c

View file

@ -4,6 +4,7 @@
path: /etc/dehydrated/domains.txt
insertafter: "^# nextcloud"
line: "{{ instance.domain }}"
register: dehydrated
delegate_to: "{{ gateway_host }}"
- name: "gateway: {{ instance.domain }}: Alias zur Zertifikatsliste hinzufügen"
@ -12,11 +13,13 @@
insertafter: "^# nextcloud"
line: "{{ instance.alias }}"
when: instance.alias is defined
register: dehydrated
delegate_to: "{{ gateway_host }}"
- name: "gateway: {{ instance.domain }}: Zertifikat erstellen"
command: dehydrated --cron -g
delegate_to: "{{ gateway_host }}"
when: dehydrated.changed
- name: "gateway: {{ instance.domain }}: Proxy einrichten"
template: