diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2018-03-07 19:50:28 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2018-03-07 19:50:28 +0100 |
commit | 4523a78c97519527ba92fb1ea4276f081e7c6629 (patch) | |
tree | b5e68bf4a0a3bcd783a364c9491a5ae74fef8f1a /roles/install_monitoring/tasks/install_vnstat.yml | |
parent | de66f3d823165844e7a97be6adfe24131e178e73 (diff) |
add munin monitoring
Diffstat (limited to 'roles/install_monitoring/tasks/install_vnstat.yml')
-rw-r--r-- | roles/install_monitoring/tasks/install_vnstat.yml | 2 |
1 files changed, 2 insertions, 0 deletions
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 }} |