switched to certbot

This commit is contained in:
2022-04-22 00:10:41 +02:00
parent 78a019d288
commit 1d26422bcc

View File

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