2014-08-16 23:35:57 +02:00
|
|
|
---
|
|
|
|
- name: Install munin-node
|
2017-10-31 21:38:32 +01:00
|
|
|
apt: name={{ item }} state=present
|
2014-08-16 23:35:57 +02:00
|
|
|
with_items:
|
|
|
|
- munin-node
|
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
|
|
|
|
- name: Install munin-node deps
|
|
|
|
apt: name={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- libwww-perl #for munin's nginx_status check
|
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
|
|
|
|
service: name=munin-node state=started enabled=true
|
|
|
|
|
|
|
|
# vim: set ts=2 sw=2:
|