From 4523a78c97519527ba92fb1ea4276f081e7c6629 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Wed, 7 Mar 2018 19:50:28 +0100 Subject: add munin monitoring --- roles/install_monitoring/tasks/install_vnstat.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'roles/install_monitoring/tasks/install_vnstat.yml') diff --git a/roles/install_monitoring/tasks/install_vnstat.yml b/roles/install_monitoring/tasks/install_vnstat.yml index e737d74..4027aa6 100644 --- a/roles/install_monitoring/tasks/install_vnstat.yml +++ b/roles/install_monitoring/tasks/install_vnstat.yml @@ -15,6 +15,7 @@ args: creates: '/var/lib/vnstat/bat{{ item.name }}' with_items: "{{ sites }}" + when: "'fastd' in group_names" - name: add interfaces to vnstat for uplink interfaces command: /usr/bin/vnstat -u -i bb{{ hostvars[item]['wireguard_bb_name'] }} @@ -22,6 +23,7 @@ creates: "/var/lib/vnstat/bb{{ hostvars[item]['wireguard_bb_name'] }}" with_items: - "{{ groups['uplink'] }}" + when: "'fastd' in group_names" - name: add interfaces to vnstat for outgoing v4 interface command: /usr/bin/vnstat -u -i {{ ansible_default_ipv4.interface }} -- cgit v1.2.3-54-g00ecf