1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

vnStat is basically never used (but patch it for divine reasons)

This commit is contained in:
root 2022-06-29 20:01:03 -04:00
parent 2457f415fc
commit 8eed8854b5
2 changed files with 20 additions and 3 deletions

View file

@ -1,3 +1,4 @@
# Similar code block in roles/vnstat/tasks/install.yml
- name: Do we have a gateway? If 'ip route' specifies a default route, Ansible parses details here...
debug:
var: ansible_default_ipv4
@ -14,7 +15,7 @@
- name: "If gateway responded, set 'gw_active: True' and 'iiab_wan_iface: {{ discovered_wan_iface }}' -- using discovered_wan_iface"
set_fact:
iiab_wan_iface: "{{ discovered_wan_iface }}"
iiab_wan_iface: "{{ discovered_wan_iface }}" # Same as code on Line 70 !
gw_active: True
when: discovered_wan_iface != "none" and gw_active_test.stdout == "1"