src.nth.io/

summaryrefslogtreecommitdiff
path: root/prosody
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2025-05-29 20:01:29 -0500
committerLuke Hoersten <[email protected]>2025-05-29 20:01:29 -0500
commita6f6bf556cf28894ac21d41396397acbbda524d7 (patch)
tree3a8905e9706b760c7286a134eac59cc8882f99ef /prosody
parentcb74bdc5ae5194ceeda48aa92ca26ca685c737f9 (diff)
Fixed an error with overwriting certbot certs.
Diffstat (limited to 'prosody')
-rw-r--r--prosody/files/prosody.sh3
-rw-r--r--prosody/tasks/main.yaml4
-rw-r--r--prosody/templates/prosody.sh.j23
3 files changed, 5 insertions, 5 deletions
diff --git a/prosody/files/prosody.sh b/prosody/files/prosody.sh
deleted file mode 100644
index e966ae8..0000000
--- a/prosody/files/prosody.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/bash
-
-prosodyctl --root cert import nth.io /etc/letsencrypt/live/nth.io-0001/fullchain.pem
diff --git a/prosody/tasks/main.yaml b/prosody/tasks/main.yaml
index 041dc35..752e4b0 100644
--- a/prosody/tasks/main.yaml
+++ b/prosody/tasks/main.yaml
@@ -22,8 +22,8 @@
- name: install letsencrypt ssl deploy hook
become: yes
- copy:
- src: "prosody.sh"
+ template:
+ src: "prosody.sh.j2"
dest: "/etc/letsencrypt/renewal-hooks/deploy/prosody.sh"
mode: "0755"
diff --git a/prosody/templates/prosody.sh.j2 b/prosody/templates/prosody.sh.j2
new file mode 100644
index 0000000..8bb7b96
--- /dev/null
+++ b/prosody/templates/prosody.sh.j2
@@ -0,0 +1,3 @@
+#! /bin/bash
+
+prosodyctl --root cert import {{prosody_vhost}} /etc/letsencrypt/live/{{prosody_vhost}}/fullchain.pem