prosody/tasks/main.yaml
changeset 44 aaf10cecfc1f
parent 23 b4ad03deace1
child 45 2d7ba960b157
--- 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: