ansible-roles/ubuntu-deb-general/tasks/munin.yml

25 lines
492 B
YAML
Raw Normal View History

---
- name: install munin-node
apt: pkg=munin-node state=installed
when: has_apt
tags:
- packages
- munin
- name: munin-node ACLs
lineinfile: name=/etc/munin/munin-node.conf line={{ item }}
with_items:
2016-06-06 17:04:01 +02:00
- 'allow ^146\.48\.87\.88$'
- 'allow ^146\.48\.122\.15$'
- 'allow ^146\.48\.123\.23$'
register: munin_config
tags:
- munin
- name: reload munin-node
service: name=munin-node state=restarted
when: munin_config.changed == True
tags:
- munin