I don't think we still need this with PW-logins disabled
[ansible.git] / roles / prosody / tasks / main.yml
1 # install
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
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 apache
17   when: inventory_hostname in groups['apache']
18   template:
19     dest: /etc/apache2/sites-available/{{ prosody.host }}.conf
20     src: templates/apache-site.conf
21   notify: apache