From a6f6bf556cf28894ac21d41396397acbbda524d7 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Thu, 29 May 2025 20:01:29 -0500 Subject: Fixed an error with overwriting certbot certs. --- prosody/files/prosody.sh | 3 --- prosody/tasks/main.yaml | 4 ++-- prosody/templates/prosody.sh.j2 | 3 +++ 3 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 prosody/files/prosody.sh create mode 100644 prosody/templates/prosody.sh.j2 (limited to 'prosody') 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 -- cgit v1.2.3