diff options
Diffstat (limited to 'prosody')
| -rw-r--r-- | prosody/files/prosody.sh | 3 | ||||
| -rw-r--r-- | prosody/tasks/main.yaml | 4 | ||||
| -rw-r--r-- | prosody/templates/prosody.sh.j2 | 3 |
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 |
