2014-08-16 23:35:57 +02:00
|
|
|
---
|
|
|
|
- name: Install munin-node
|
2018-04-02 14:51:29 +02:00
|
|
|
apt: name=munin-node state=present
|
2016-08-14 15:33:48 +02:00
|
|
|
tags: packages
|
2014-08-16 23:35:57 +02:00
|
|
|
|
|
|
|
# some nice things to have for munin-node on Ubuntu
|
2018-04-02 14:51:29 +02:00
|
|
|
# libwww-perl: for munin's nginx_status check
|
2014-08-16 23:35:57 +02:00
|
|
|
- name: Install munin-node deps
|
2018-04-02 14:51:29 +02:00
|
|
|
apt: name=libwww-perl state=present
|
2016-08-14 15:33:48 +02:00
|
|
|
tags: packages
|
2014-08-16 23:35:57 +02:00
|
|
|
|
|
|
|
- name: Create munin-node.conf
|
|
|
|
template: src=munin-node.conf.j2 dest=/etc/munin/munin-node.conf
|
2017-10-31 21:39:34 +01:00
|
|
|
notify:
|
2014-08-16 23:35:57 +02:00
|
|
|
- restart munin-node
|
|
|
|
|
|
|
|
- name: Configure munin-node
|
|
|
|
shell: munin-node-configure --shell --families=contrib,auto | sh -x
|
|
|
|
notify:
|
|
|
|
- restart munin-node
|
|
|
|
|
|
|
|
- name: Start munin-node
|
2020-07-14 08:47:02 +02:00
|
|
|
systemd: name=munin-node state=started enabled=true
|
2014-08-16 23:35:57 +02:00
|
|
|
|
|
|
|
# vim: set ts=2 sw=2:
|