added migration var

This commit is contained in:
rene committed 2022-04-20 17:34:20 +02:00
1 parent eb7d69a05e
commit ca107534bc
2 files changed
+9 -2

No files matched your search

+4 -1
View File
@@ -20,4 +20,7 @@ netdata: true
# VPN
wireguard: true
wg_local_ip: 192.168.3.11/24
wg_local_ip: 192.168.3.11/24
# Application
migration: true
@@ -15,10 +15,14 @@
- name: Reload nginx
command: "systemctl reload nginx"
when:
- migration is not defined or migration == False
- name: Install letsencrypt cert
command: letsencrypt certonly -n --webroot -d {{ mastodon_host | default(ansible_fqdn) }} -w {{ mastodon_home }}/{{ mastodon_path }}/public/ --email "webmaster@{{ mastodon_host | default(ansible_fqdn) }}" --agree-tos && systemctl reload nginx
when: not letsencrypt_cert.stat.exists
when:
- not letsencrypt_cert.stat.exists
- migration == False or migration is not defined
- name: Letsencrypt Job
cron: