ansible-roles/bind/tasks/munin.yml

40 lines
849 B
YAML
Raw Normal View History

2017-07-18 19:38:03 +02:00
---
2017-04-13 17:13:52 +02:00
- name: is Munin present ?
stat:
path: /etc/munin/plugin-conf.d/munin-node
check_mode: no
register: munin_node_plugins_config
tags:
- bind
- munin
when: bind_authoritative_server
2017-04-13 17:13:52 +02:00
- name: Enable munin plugins
file:
src: "/usr/share/munin/plugins/{{ item }}"
dest: "/etc/munin/plugins/{{ item }}"
state: link
2017-07-18 19:38:03 +02:00
with_items:
2017-04-13 17:13:52 +02:00
- bind9
- bind9_rndc
notify: restart munin-node
when: bind_authoritative_server and munin_node_plugins_config.stat.exists
2017-04-13 17:13:52 +02:00
tags:
- bind
- munin
- name: Add munin plugin configuration
template:
src: munin-env_bind9.j2
2017-04-13 17:13:52 +02:00
dest: /etc/munin/plugin-conf.d/bind9
owner: root
group: root
mode: "0644"
force: yes
notify: restart munin-node
when: bind_authoritative_server and munin_node_plugins_config.stat.exists
2017-04-13 17:13:52 +02:00
tags:
- bind
- munin