2017-10-10 00:03:22 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: is Munin present ?
|
|
|
|
stat:
|
|
|
|
path: /etc/munin/plugin-conf.d/munin-node
|
|
|
|
check_mode: no
|
|
|
|
register: munin_node_plugins_config
|
|
|
|
|
2019-12-31 16:56:03 +01:00
|
|
|
- name: Munin plugins are present and configured
|
|
|
|
block:
|
|
|
|
- name: Install munin plugin
|
|
|
|
copy:
|
|
|
|
src: munin_plugin
|
|
|
|
dest: /etc/munin/plugins/dovecot
|
|
|
|
mode: "0755"
|
2017-10-10 00:03:22 +02:00
|
|
|
|
2020-10-16 15:33:52 +02:00
|
|
|
- name: Install munin config
|
|
|
|
copy:
|
|
|
|
src: munin_config
|
|
|
|
dest: /etc/munin/plugin-conf.d/dovecot
|
|
|
|
mode: "0644"
|
2017-10-10 00:03:22 +02:00
|
|
|
|
|
|
|
when: munin_node_plugins_config.stat.exists
|