summaryrefslogtreecommitdiff
path: root/roles/web/files/certbot/certbot.service
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2023-12-21 18:08:22 +0000
committerDmitry Ilvokhin <d@ilvokhin.com>2023-12-21 18:08:22 +0000
commit98deb6b468c52d09c69c699b02ab16791f557beb (patch)
tree3dd114dfd79a81f577c0ffa93e8bf3bd06d70759 /roles/web/files/certbot/certbot.service
parent1fe154b136bce2fb063e39050d9bc0deb2279bb0 (diff)
downloadinfra-98deb6b468c52d09c69c699b02ab16791f557beb.tar.gz
infra-98deb6b468c52d09c69c699b02ab16791f557beb.tar.bz2
infra-98deb6b468c52d09c69c699b02ab16791f557beb.zip
Enable certbot for certificates renewal
Diffstat (limited to 'roles/web/files/certbot/certbot.service')
-rw-r--r--roles/web/files/certbot/certbot.service6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/web/files/certbot/certbot.service b/roles/web/files/certbot/certbot.service
new file mode 100644
index 0000000..bea307c
--- /dev/null
+++ b/roles/web/files/certbot/certbot.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Let's Encrypt renewal
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/certbot renew --agree-tos --deploy-hook "systemctl reload nginx"