mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
17 lines
597 B
YAML
17 lines
597 B
YAML
|
- name: Enable http://box/maps & http://box/matomo via NGINX, by installing {{ nginx_conf_dir }}/matomo-nginx.conf from template
|
||
|
template:
|
||
|
src: matomo-nginx.conf.j2
|
||
|
dest: "{{ nginx_conf_dir }}/matomo-nginx.conf" # /etc/nginx/conf.d
|
||
|
when: matomo_enabled
|
||
|
|
||
|
- name: Disable http://box/maps & http://box/matomo via NGINX, by removing {{ nginx_conf_dir }}/matomo-nginx.conf
|
||
|
file:
|
||
|
path: "{{ nginx_conf_dir }}/matomo-nginx.conf" # /etc/nginx/conf.d
|
||
|
state: absent
|
||
|
when: not matomo_enabled
|
||
|
|
||
|
- name: Reload 'nginx' systemd service
|
||
|
systemd:
|
||
|
name: nginx
|
||
|
state: reloaded
|