forked from infra/ansible
23 lines
572 B
YAML
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
|