2022-06-18 17:55:05 +00:00
|
|
|
- name: Enable & Start 'munin-node' systemd service
|
|
|
|
systemd:
|
|
|
|
name: munin-node
|
|
|
|
daemon_reload: yes
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
|
|
|
when: munin_enabled
|
|
|
|
|
|
|
|
- name: Disable & Stop 'munin-node' systemd service
|
|
|
|
systemd:
|
|
|
|
name: munin-node
|
|
|
|
enabled: no
|
|
|
|
state: stopped
|
|
|
|
when: not munin_enabled
|
|
|
|
|
|
|
|
|
2020-01-24 06:08:42 +00:00
|
|
|
- name: Enable http://box/munin via NGINX, by installing {{ nginx_conf_dir }}/munin24-nginx.conf from template
|
2020-01-23 21:36:11 +00:00
|
|
|
template:
|
|
|
|
src: munin24-nginx.conf.j2
|
2020-01-24 06:08:42 +00:00
|
|
|
dest: "{{ nginx_conf_dir }}/munin24-nginx.conf" # /etc/nginx/conf.d
|
2020-10-16 20:46:19 +00:00
|
|
|
when: munin_enabled
|
2020-01-23 21:36:11 +00:00
|
|
|
|
2020-01-24 06:08:42 +00:00
|
|
|
- name: Disable http://box/munin via NGINX, by installing {{ nginx_conf_dir }}/munin24-nginx.conf
|
2020-01-23 21:36:11 +00:00
|
|
|
file:
|
2020-01-24 06:08:42 +00:00
|
|
|
path: "{{ nginx_conf_dir }}/munin24-nginx.conf" # /etc/nginx/conf.d
|
2020-01-23 21:36:11 +00:00
|
|
|
state: absent
|
|
|
|
when: not munin_enabled
|
|
|
|
|
|
|
|
- name: Restart 'nginx' systemd service
|
|
|
|
systemd:
|
|
|
|
name: nginx
|
|
|
|
state: restarted
|