Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

prosody.yml 1.2KB

12345678910111213141516171819202122232425262728
  1. - name: Ensure repository key for Prosody is in place
  2. apt_key: url=https://prosody.im/files/prosody-debian-packages.key state=present
  3. - name: Add Prosody repository
  4. apt_repository: repo='deb http://packages.prosody.im/debian wheezy main'
  5. - name: Install Prosody from official repository
  6. apt: pkg=prosody update_cache=yes
  7. - name: Create Prosody data directory
  8. file: state=directory path=/decrypted/prosody owner=prosody group=prosody
  9. - name: Copy SSL private key into place for Prosody
  10. shell: cp /etc/ssl/private/wildcard_private.key /etc/ssl/private/wildcard_private_prosody.key
  11. - name: Ensure prosody user and group can read private key
  12. file: path=/etc/ssl/private/wildcard_private_prosody.key group=prosody owner=prosody
  13. - name: Copy SSL public certificate into place for Prosody
  14. shell: cp /etc/ssl/certs/wildcard_public_cert.crt /etc/ssl/certs/wildcard_public_cert_prosody.crt
  15. - name: Ensure prosody user and group can read cert
  16. file: path=/etc/ssl/certs/wildcard_public_cert_prosody.crt group=prosody owner=prosody
  17. - name: Configure Prosody
  18. template: src=prosody.cfg.lua.j2 dest=/etc/prosody/prosody.cfg.lua group=root owner=root
  19. notify: restart prosody