21 lines
493 B
YAML
21 lines
493 B
YAML
---
|
|
- name: Install prosody http site
|
|
template:
|
|
src: nginx.j2
|
|
dest: "/etc/nginx/sites-available/{{ prosody_domain }}"
|
|
when: prosody_nginx_install
|
|
|
|
- name: Enable prosody http site
|
|
notify: reload nginx
|
|
file:
|
|
src: /etc/nginx/sites-available/{{ prosody_domain }}
|
|
dest: /etc/nginx/sites-enabled/{{ prosody_domain }}
|
|
state: link
|
|
when: prosody_nginx_install
|
|
|
|
- name: Configure prosody
|
|
template:
|
|
src: prosody.cfg.lua.j2
|
|
dest: /etc/prosody/prosody.cfg.lua
|
|
|
|
...
|