2014-08-16 23:35:57 +02:00
|
|
|
---
|
|
|
|
- name: Install munin-node
|
2015-05-25 23:02:43 +02:00
|
|
|
apt: name={{ item }} state=latest
|
2015-08-31 23:10:16 +02:00
|
|
|
when: ansible_os_family == "Ubuntu"
|
2014-08-16 23:35:57 +02:00
|
|
|
with_items:
|
|
|
|
- munin-node
|
|
|
|
|
|
|
|
# some nice things to have for munin-node on Ubuntu
|
|
|
|
- name: Install munin-node deps
|
2015-08-31 23:10:16 +02:00
|
|
|
when: ansible_os_family == "Ubuntu"
|
2014-08-16 23:35:57 +02:00
|
|
|
apt: name={{ item }} state=present
|
|
|
|
with_items:
|
|
|
|
- libwww-perl #for munin's nginx_status check
|
|
|
|
|
|
|
|
- name: Create munin-node.conf
|
|
|
|
template: src=munin-node.conf.j2 dest=/etc/munin/munin-node.conf
|
|
|
|
notify:
|
|
|
|
- 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:
|