From b0f8f2d3ad3e981013a3e5c83edf727fbc926aa1 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 26 May 2024 14:27:34 +0200 Subject: rout,munin: Check plugin dir --- roles/router/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roles') 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 -- cgit v1.2.3