switched to certbot
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
- migration is not defined or migration == False
|
- 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: certbot 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:
|
when:
|
||||||
- not letsencrypt_cert.stat.exists
|
- not letsencrypt_cert.stat.exists
|
||||||
- migration == False or migration is not defined
|
- migration == False or migration is not defined
|
||||||
@@ -29,5 +29,5 @@
|
|||||||
name: "letsencrypt renew"
|
name: "letsencrypt renew"
|
||||||
minute: "15"
|
minute: "15"
|
||||||
hour: "0"
|
hour: "0"
|
||||||
job: "letsencrypt renew && service nginx reload"
|
job: "certbot renew && service nginx reload"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user