From 1d26422bcc6c57ae7cae25f7deadee30e2fe2aba Mon Sep 17 00:00:00 2001 From: Rene Date: Fri, 22 Apr 2022 00:10:41 +0200 Subject: [PATCH] switched to certbot --- roles/mastodon/tasks/system_setup/letsencrypt.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mastodon/tasks/system_setup/letsencrypt.yml b/roles/mastodon/tasks/system_setup/letsencrypt.yml index 2c495b3..c98536f 100644 --- a/roles/mastodon/tasks/system_setup/letsencrypt.yml +++ b/roles/mastodon/tasks/system_setup/letsencrypt.yml @@ -19,7 +19,7 @@ - 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 + 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: - not letsencrypt_cert.stat.exists - migration == False or migration is not defined @@ -29,5 +29,5 @@ name: "letsencrypt renew" minute: "15" hour: "0" - job: "letsencrypt renew && service nginx reload" + job: "certbot renew && service nginx reload"