Copy prosody keys over.
authorLuke Hoersten <luke@hoersten.org>
Sun, 14 Jun 2020 14:50:21 -0500
changeset 44 aaf10cecfc1f
parent 43 b86f3fc9fb6f
child 45 2d7ba960b157
Copy prosody keys over.
prosody/tasks/main.yaml
--- a/prosody/tasks/main.yaml	Sun Jun 14 11:40:43 2020 -0500
+++ b/prosody/tasks/main.yaml	Sun Jun 14 14:50:21 2020 -0500
@@ -17,6 +17,20 @@
   template: src="prosody.cfg.lua.j2" dest="/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua"
   notify: restart prosody
 
+- name: copy ssl keys
+  become: yes
+  copy:
+    src: "{{item}}"
+    dest: "{{prosody_ssl_dir}}/"
+    remote_src: yes
+    mode: "0640"
+    owner: "root"
+    group: "prosody"
+  notify: restart prosody
+  loop:
+    - "{{prosody_ssl_privkey_src}}"
+    - "{{prosody_ssl_cert_src}}"
+
 - name: enable prosody site
   become: yes
   file: