Erstelle Zertifikat nur, falls es Änderungen gab
This commit is contained in:
parent
8d720be3f7
commit
2b518c2b2c
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
path: /etc/dehydrated/domains.txt
|
path: /etc/dehydrated/domains.txt
|
||||||
insertafter: "^# nextcloud"
|
insertafter: "^# nextcloud"
|
||||||
line: "{{ instance.domain }}"
|
line: "{{ instance.domain }}"
|
||||||
|
register: dehydrated
|
||||||
delegate_to: "{{ gateway_host }}"
|
delegate_to: "{{ gateway_host }}"
|
||||||
|
|
||||||
- name: "gateway: {{ instance.domain }}: Alias zur Zertifikatsliste hinzufügen"
|
- name: "gateway: {{ instance.domain }}: Alias zur Zertifikatsliste hinzufügen"
|
||||||
|
@ -12,11 +13,13 @@
|
||||||
insertafter: "^# nextcloud"
|
insertafter: "^# nextcloud"
|
||||||
line: "{{ instance.alias }}"
|
line: "{{ instance.alias }}"
|
||||||
when: instance.alias is defined
|
when: instance.alias is defined
|
||||||
|
register: dehydrated
|
||||||
delegate_to: "{{ gateway_host }}"
|
delegate_to: "{{ gateway_host }}"
|
||||||
|
|
||||||
- name: "gateway: {{ instance.domain }}: Zertifikat erstellen"
|
- name: "gateway: {{ instance.domain }}: Zertifikat erstellen"
|
||||||
command: dehydrated --cron -g
|
command: dehydrated --cron -g
|
||||||
delegate_to: "{{ gateway_host }}"
|
delegate_to: "{{ gateway_host }}"
|
||||||
|
when: dehydrated.changed
|
||||||
|
|
||||||
- name: "gateway: {{ instance.domain }}: Proxy einrichten"
|
- name: "gateway: {{ instance.domain }}: Proxy einrichten"
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in a new issue