aboutsummaryrefslogtreecommitdiffstats
path: root/roles/sky/templates/certbot-nginx.sh.j2
diff options
context:
space:
mode:
authorJoshua Hull <josh@fireflop.com>2023-01-15 10:49:21 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2023-01-27 01:25:24 +0100
commit0562d72eaafaedf0f10414e0b42fa92d248c60f3 (patch)
treeb2097545f6e02cbfa5c1dd6db685033995f9e010 /roles/sky/templates/certbot-nginx.sh.j2
parentcd9597103b864dfba9ab8f707f2f5a54b42d6a4a (diff)
downloadlabitat-ansible-0562d72eaafaedf0f10414e0b42fa92d248c60f3.tar.gz
labitat-ansible-0562d72eaafaedf0f10414e0b42fa92d248c60f3.tar.xz
labitat-ansible-0562d72eaafaedf0f10414e0b42fa92d248c60f3.zip
sky: certbot: configure certbot
esmil: - don't install cron job, just use the packaged timer - install deploy hook to reload nginx when certificates are updated
Diffstat (limited to 'roles/sky/templates/certbot-nginx.sh.j2')
-rwxr-xr-xroles/sky/templates/certbot-nginx.sh.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/sky/templates/certbot-nginx.sh.j2 b/roles/sky/templates/certbot-nginx.sh.j2
new file mode 100755
index 0000000..96ffe6d
--- /dev/null
+++ b/roles/sky/templates/certbot-nginx.sh.j2
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+case "$RENEWED_LINEAGE" in
+*'/{{ domain_name }}')
+ exec systemctl reload nginx.service
+ ;;
+esac
+
+# vim: set ts=2 sw=2 et: