diff options
author | uvok cheetah | 2024-05-26 14:27:34 +0200 |
---|---|---|
committer | uvok cheetah | 2024-05-26 14:27:34 +0200 |
commit | b0f8f2d3ad3e981013a3e5c83edf727fbc926aa1 (patch) | |
tree | be933b225ef8c463364e4c6b432043e9d884503d | |
parent | 36ad3dd2871b9de8577406ed37e1050bd2d4009a (diff) |
rout,munin: Check plugin dir
-rw-r--r-- | roles/router/tasks/main.yml | 6 |
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 |