diff --git a/roles/xmpp_server/tasks/main.yml b/roles/xmpp_server/tasks/main.yml index d2fe10ce5687cc9e36050ec94b4ef698d4723874..4642fdc36f209c9d9e0c38ff3ebf830f633d116d 100644 --- a/roles/xmpp_server/tasks/main.yml +++ b/roles/xmpp_server/tasks/main.yml @@ -24,14 +24,22 @@ user: name=prosody append=yes groups=ssl-cert - name: Deploy XMPP TLS private key - copy: dest="/etc/ssl/private/{{ ansible_fqdn }}_xmpp.key" content="{{ xmpp_tls_key }}" - mode=0640 owner=root group=prosody + copy: + dest: "/etc/ssl/private/{{ ansible_fqdn }}_xmpp.key" + content: "{{ xmpp_tls_key }}" + mode: 0640 + owner: root + group: prosody notify: - Restart Prosody - name: Deploy XMPP TLS certificate - copy: dest="/etc/ssl/certs/{{ ansible_fqdn }}_xmpp.pem" content="{{ xmpp_tls_certificate }}" - mode=0644 owner=root group=root + copy: + dest: "/etc/ssl/certs/{{ ansible_fqdn }}_xmpp.pem" + content: "{{ xmpp_tls_certificate }}" + mode: 0644 + owner: root + group: root notify: - Restart Prosody @@ -50,7 +58,12 @@ file: dest=/usr/local/lib/prosody/modules/mod_auth_ldap.lua owner=root group=root mode=0644 - name: Deploy Prosody configuration file - template: src=prosody.cfg.lua.j2 dest=/etc/prosody/prosody.cfg.lua + template: + src: prosody.cfg.lua.j2 + dest: /etc/prosody/prosody.cfg.lua + owner: root + group: prosody + mode: 0640 notify: - Restart Prosody