12345678910111213141516171819202122 |
- - name: Ensure repository key for Prosody is in place
- apt_key: url=https://prosody.im/files/prosody-debian-packages.key state=present
-
- - name: Add Prosody repository
- apt_repository: repo='deb http://packages.prosody.im/debian wheezy main'
-
- - name: Install Prosody from official repository
- apt: pkg=prosody update_cache=yes
-
- - name: Add prosody user to ssl-cert group
- user: name=prosody groups=ssl-cert append=yes
-
- - name: Create Prosody data directory
- file: state=directory path=/decrypted/prosody owner=prosody group=prosody
-
- - name: Configure Prosody
- template: src=prosody.cfg.lua.j2 dest=/etc/prosody/prosody.cfg.lua group=root owner=root
- notify: restart prosody
-
- - name: Create Prosody accounts
- command: prosodyctl register {{ item.name }} {{ prosody_virtual_domain }} "{{ item.password }}"
- with_items: prosody_accounts
|