summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authoruvok cheetah2024-05-26 14:27:34 +0200
committeruvok cheetah2024-05-26 14:27:34 +0200
commitb0f8f2d3ad3e981013a3e5c83edf727fbc926aa1 (patch)
treebe933b225ef8c463364e4c6b432043e9d884503d /roles
parent36ad3dd2871b9de8577406ed37e1050bd2d4009a (diff)
rout,munin: Check plugin dir
Diffstat (limited to 'roles')
-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