Geen omschrijving
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.3KB

123456789101112131415161718192021222324252627282930313233
  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. # Prosody supplies repo for sid, squeeze, wheezy, jessie, trusty, saucy, raring, quantal, precise and lucid
  4. - name: Add Prosody Debian/Ubuntu repository
  5. apt_repository: repo="deb http://packages.prosody.im/debian {{ ansible_distribution_release }} main"
  6. - name: Install Prosody from official repository
  7. apt: pkg=prosody update_cache=yes
  8. - name: Install lua-sec 0.5+
  9. apt: pkg=lua-sec update_cache=yes
  10. when: ansible_distribution_release == 'trusty' or ansible_distribution_release == 'jessie'
  11. - name: Add prosody user to ssl-cert group
  12. user: name=prosody groups=ssl-cert append=yes
  13. - name: Create Prosody data directory
  14. file: state=directory path=/decrypted/prosody owner=prosody group=prosody
  15. - name: Configure Prosody
  16. template: src=prosody.cfg.lua.j2 dest=/etc/prosody/prosody.cfg.lua group=root owner=root
  17. notify: restart prosody
  18. - name: Create Prosody accounts
  19. command: prosodyctl register {{ item.name }} {{ prosody_virtual_domain }} "{{ item.password }}"
  20. with_items: prosody_accounts
  21. - name: Set firewall rules for Prosody
  22. ufw: rule=allow port={{ item }} proto=tcp
  23. with_items:
  24. - 5222 # xmpp c2s
  25. - 5269 # xmpp s2s