From 7fafb528ef8db9615d8f0827b47b3f7cb363051b Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Thu, 11 Nov 2021 15:54:54 -0800 Subject: [PATCH] [meta] fix Lets Encrypt cert renewing cronjob --- ansible/playbooks/lets_encrypt/renew-certs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ansible/playbooks/lets_encrypt/renew-certs b/ansible/playbooks/lets_encrypt/renew-certs index fc0a860..88192fc 100644 --- a/ansible/playbooks/lets_encrypt/renew-certs +++ b/ansible/playbooks/lets_encrypt/renew-certs @@ -1,4 +1,2 @@ #!/bin/sh -{% for tld in lets_encrypt_tlds %} -certbot renew --cert-name {{ tld }} --webroot -w /var/lib/letsencrypt/ --post-hook "systemctl reload nginx" -{% endfor %} +certbot renew -w /var/lib/letsencrypt/ --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx"