No Description
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.1KB

1234567891011121314151617181920212223242526272829
  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: Add prosody user to ssl-cert group
  9. user: name=prosody groups=ssl-cert append=yes
  10. - name: Create Prosody data directory
  11. file: state=directory path=/decrypted/prosody owner=prosody group=prosody
  12. - name: Configure Prosody
  13. template: src=prosody.cfg.lua.j2 dest=/etc/prosody/prosody.cfg.lua group=root owner=root
  14. notify: restart prosody
  15. - name: Create Prosody accounts
  16. command: prosodyctl register {{ item.name }} {{ prosody_virtual_domain }} "{{ item.password }}"
  17. with_items: prosody_accounts
  18. - name: Set firewall rules for Prosody
  19. ufw: rule=allow port={{ item }} proto=tcp
  20. with_items:
  21. - 5222 # xmpp c2s
  22. - 5269 # xmpp s2s