forked from ccchb/ansible
22 lines
498 B
YAML
22 lines
498 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_test.cfg.lua
|
||
|
|
||
|
...
|