ansible/roles/prosody/tasks/main.yml

23 lines
572 B
YAML

---
- name: Install prosody
apt: name=prosody state=present
tags: prosody
- name: Enable backports
apt_repository: repo='deb http://httpredir.debian.org/debian jessie-backports main' state=present
tags: prosody
- name: Install prosody-modules
apt: name=prosody-modules default_release=jessie-backports state=present
tags: prosody
- name: Configure prosody
template: src=prosody.cfg.lua.j2 dest=/etc/prosody/prosody.cfg.lua
notify: Restart prosody
tags: prosody
- name: Start prosody
service: name=prosody state=started enabled=yes
tags: prosody