ansible/roles/prosody/tasks/main.yml

22 lines
498 B
YAML
Raw Normal View History

2021-02-02 18:04:38 -06:00
---
- 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
...