ansible-role-mumble/tasks/nginx.yml

18 lines
495 B
YAML
Raw Normal View History

2020-05-21 22:15:33 +02:00
- name: Copy Nginx config file
template:
src: nginx.conf.j2
dest: "{{ mumble_web_nginx_config_dir }}/sites-available/mumble.conf"
2020-05-21 22:15:33 +02:00
owner: root
group: www-data
mode: "755"
notify: reload nginx
- name: Enable Nginx config file
file:
src: "{{ mumble_web_nginx_config_dir }}/sites-available/mumble.conf"
path: "{{ mumble_web_nginx_config_dir }}/sites-enabled/mumble.conf"
2020-05-21 22:15:33 +02:00
state: link
notify: reload nginx
- name: Trigger Nginx handlers
meta: flush_handlers