journalwatch: allow more TLS errors
[ansible.git] / roles / prosody / tasks / main.yml
1 # install
2 - name: install prosody
3   apt: name=prosody,lua-zlib,lua-dbi-sqlite3,coturn state=latest default_release={{ansible_distribution_release}}-backports
4 - name: fetch prosody modules
5   hg:
6     dest: "{{ prosody.paths.modules }}"
7     repo: 'https://hg.prosody.im/prosody-modules/'
8     version: default
9   notify: prosody
10 # configure
11 - name: configure prosody
12   template:
13     dest: /etc/prosody/prosody.cfg.lua
14     src: templates/prosody.cfg.lua
15   notify: prosody
16 - name: configure coturn
17   template:
18     dest: /etc/turnserver.conf
19     src: templates/turnserver.conf
20   notify: coturn
21 - name: configure apache
22   when: inventory_hostname in groups['apache']
23   template:
24     dest: /etc/apache2/sites-available/{{ prosody.host }}.conf
25     src: templates/apache-site.conf
26   notify: apache