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
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue