added migration var
This commit is contained in:
@@ -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
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user