diff --git a/roles/xmpp_server/tasks/main.yml b/roles/xmpp_server/tasks/main.yml index d53bc30f3cd9ed8c3e492881a8da5673eb77a3b1..dcedd1dfe4f1a831d832aaf1e6883cc2e78130a7 100644 --- a/roles/xmpp_server/tasks/main.yml +++ b/roles/xmpp_server/tasks/main.yml @@ -57,6 +57,16 @@ notify: - Restart Prosody +- name: Generate the XMPP server Diffie-Helman parameter + openssl_dhparam: + owner: root + group: prosody + mode: 0640 + path: "/etc/ssl/private/{{ ansible_fqdn }}_xmpp.dh.pem" + size: 2048 + notify: + - Restart Prosody + - name: Deploy configuration file for checking certificate validity via cron copy: content: "/etc/ssl/certs/{{ ansible_fqdn }}_xmpp.pem"