summaryrefslogtreecommitdiff
path: root/roles/router
diff options
context:
space:
mode:
Diffstat (limited to 'roles/router')
-rw-r--r--roles/router/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/router/tasks/main.yml b/roles/router/tasks/main.yml
index 6ab944f..5586edf 100644
--- a/roles/router/tasks/main.yml
+++ b/roles/router/tasks/main.yml
@@ -6,11 +6,17 @@
- iperf3
- mtr-tiny
state: present
+- name: Check if munin plugin dir exists
+ stat:
+ path: /usr/local/share/munin/plugins/
+ register: munin_plugin_dir
- name: Copy munin plugin
copy:
src: munin_bird
dest: /usr/local/share/munin/plugins/bird
mode: '0750'
+ when:
+ - munin_plugin_dir.stat.isdir is defined and munin_plugin_dir.stat.isdir
tags:
- munin
- name: Apply tinc rule