2 - name: install prosody
3 apt: name=prosody,lua-zlib,lua-dbi-sqlite3 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 apache
17 when: inventory_hostname in groups['apache']
19 dest: /etc/apache2/sites-available/{{ prosody.host }}.conf
20 src: templates/apache-site.conf