ansible-personal/roles/munin/tasks/munin-node.yml
Alan Orth e43d8924e8
roles/munin: Remove ansible_os_family checks
First of all, there is no ansible_os_family Ubuntu! Second, we are only
supporting Debian-based systems here so there is no need to check this.
2017-11-05 01:17:01 +02:00

29 lines
691 B
YAML

---
- name: Install munin-node
apt: name={{ item }} state=present
with_items:
- munin-node
tags: packages
# 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
tags: packages
- 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: