2016-12-16 12:27:38 +01:00
|
|
|
---
|
|
|
|
|
2017-01-10 11:08:14 +01:00
|
|
|
- name: Check if Munin plugins exists
|
|
|
|
stat:
|
|
|
|
path: /etc/munin/plugins/
|
|
|
|
register: munin_plugins_dir
|
2017-03-24 14:15:09 +01:00
|
|
|
check_mode: no
|
2017-05-03 14:19:32 +02:00
|
|
|
tags:
|
|
|
|
- drbd
|
2017-03-24 14:15:09 +01:00
|
|
|
|
2017-01-05 18:09:00 +01:00
|
|
|
# https://raw.githubusercontent.com/munin-monitoring/contrib/master/plugins/drbd/drbd
|
2016-12-16 12:27:38 +01:00
|
|
|
- name: Get Munin plugin
|
2017-01-05 18:09:00 +01:00
|
|
|
copy:
|
|
|
|
src: munin/drbd-plugin
|
|
|
|
dest: /etc/munin/plugins/drbd
|
2017-03-23 16:59:43 +01:00
|
|
|
mode: "0755"
|
2017-01-12 14:56:05 +01:00
|
|
|
when: munin_plugins_dir.stat.exists
|
2016-12-16 12:27:38 +01:00
|
|
|
notify: restart munin-node
|
2017-05-03 14:19:32 +02:00
|
|
|
tags:
|
|
|
|
- drbd
|
2016-12-16 12:27:38 +01:00
|
|
|
|
|
|
|
- name: Copy Munin plugin conf
|
|
|
|
copy:
|
2017-01-05 18:09:00 +01:00
|
|
|
src: munin/drbd-config
|
|
|
|
dest: /etc/munin/plugin-conf.d/drbd
|
2017-06-05 16:31:11 +02:00
|
|
|
mode: "0644"
|
2017-01-12 14:56:05 +01:00
|
|
|
when: munin_plugins_dir.stat.exists
|
2016-12-16 12:27:38 +01:00
|
|
|
notify: restart munin-node
|
2017-05-03 14:19:32 +02:00
|
|
|
tags:
|
|
|
|
- drbd
|