diff --git a/roles/xmpp_server/tasks/main.yml b/roles/xmpp_server/tasks/main.yml index 3d9530728e052b1c23cf9c0cb826b0fc3f2a786b..fe06afbcb612502808e474ed62403373364ecb25 100644 --- a/roles/xmpp_server/tasks/main.yml +++ b/roles/xmpp_server/tasks/main.yml @@ -95,6 +95,22 @@ group: root mode: 0644 +- name: Deploy script for validating Prosody certificate + copy: + src: "check_prosody_certificate.sh" + dest: "/usr/local/bin/check_prosody_certificate.sh" + owner: root + group: root + mode: 0755 + +- name: Set-up crontab task that runs the Prosody certificate checker script once a day + copy: + src: "cron_check_prosody_certificate" + dest: "/etc/cron.d/check_prosody_certificate" + owner: root + group: root + mode: 0644 + - name: Set-up directory for storing additional Prosody modules file: path: "/usr/local/lib/prosody/modules/"