26 lines
624 B
YAML
26 lines
624 B
YAML
---
|
|
- file:
|
|
path: '/usr/local/share/munin/plugins/'
|
|
state: directory
|
|
mode: 02755
|
|
|
|
- name: Get Munin plugin
|
|
get_url:
|
|
url: 'https://raw.githubusercontent.com/munin-monitoring/contrib/master/plugins/drbd/drbd'
|
|
dest: '/usr/local/share/munin/plugins/'
|
|
mode: 0755
|
|
notify: restart munin-node
|
|
|
|
- name: Activate Munin plugin
|
|
file:
|
|
src: "/usr/local/share/munin/plugins/drbd"
|
|
dest: "/etc/munin/plugins/drbd"
|
|
state: link
|
|
notify: restart munin-node
|
|
|
|
- name: Copy Munin plugin conf
|
|
copy:
|
|
src: files/munin-plugins
|
|
dest: '/etc/munin/plugin-conf.d/drbd'
|
|
notify: restart munin-node
|