39:28ad6d3e2618
Anton Shestakov <av6@dwimlabs.net>, Wed, 23 Mar 2016 16:55:52 +0800
index: maintain only one contact with type 'self' This isn't done in an event handler of contacts collection because doing it in 'add' handler would trigger 'sort' event after the model has been added, but before its 'add' event has propagated, and that's dumb.

next change 211:4b03f725cb69
previous change 3:0b7b5add13e3

contrib/provision/roles/prosody/tasks/main.yml

Permissions: -rw-r--r--

Other formats: Feeds:
---
- name: Install server packages
apt: pkg={{ item }} state=present
with_items:
- mercurial # for extra modules
- prosody
- lua-event
- lua-sec
tags: [packages]
- include: extra-modules.yml
sudo: yes
sudo_user: prosody
- name: Generate a Diffie-Hellman key exchange parameters file
command: >
openssl dhparam
{% if ansible_virtualization_type == "virtualbox" %}-dsaparam{% endif %}
-out /etc/prosody/dh-2048.pem
2048
args:
creates: /etc/prosody/dh-2048.pem
notify:
- restart prosody
- name: Work around default config bug
file: src=../../ssl/certs/ssl-cert-snakeoil.pem dest=/etc/prosody/certs/localhost.crt state=link
notify:
- restart prosody
- name: Disable localhost VirtualHost
file: path=/etc/prosody/conf.d/localhost.cfg.lua state=absent
notify:
- restart prosody
- name: Open ports
ufw: rule=allow port=xmpp-client proto=tcp
when: ansible_virtualization_type == "virtualbox"
tags: [ufw]
...