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

@@ -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: