summaryrefslogtreecommitdiff
path: root/roles/install_monitoring/tasks/install_vnstat.yml
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2018-03-07 19:50:28 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2018-03-07 19:50:28 +0100
commit4523a78c97519527ba92fb1ea4276f081e7c6629 (patch)
treeb5e68bf4a0a3bcd783a364c9491a5ae74fef8f1a /roles/install_monitoring/tasks/install_vnstat.yml
parentde66f3d823165844e7a97be6adfe24131e178e73 (diff)
add munin monitoring
Diffstat (limited to 'roles/install_monitoring/tasks/install_vnstat.yml')
-rw-r--r--roles/install_monitoring/tasks/install_vnstat.yml2
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 }}