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
6 dest: "{{ prosody.paths.modules }}"
7 repo: 'https://hg.prosody.im/prosody-modules/'
11 - name: configure prosody
13 dest: /etc/prosody/prosody.cfg.lua
14 src: templates/prosody.cfg.lua
16 - name: configure coturn
18 dest: /etc/turnserver.conf
19 src: templates/turnserver.conf
21 - name: configure apache
22 when: inventory_hostname in groups['apache']
24 dest: /etc/apache2/sites-available/{{ prosody.host }}.conf
25 src: templates/apache-site.conf