added migration var

This commit is contained in:
rene
2022-04-20 17:34:20 +02:00
parent eb7d69a05e
commit ca107534bc
2 changed files with 9 additions and 2 deletions

View File

@@ -20,4 +20,7 @@ netdata: true
# VPN # VPN
wireguard: true wireguard: true
wg_local_ip: 192.168.3.11/24 wg_local_ip: 192.168.3.11/24
# Application
migration: true

View File

@@ -15,10 +15,14 @@
- name: Reload nginx - name: Reload nginx
command: "systemctl reload nginx" command: "systemctl reload nginx"
when:
- migration is not defined or migration == False
- name: Install letsencrypt cert - 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 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 - name: Letsencrypt Job
cron: cron: