accesspoints: fix monitoring packages

This commit is contained in:
Gregor Michels 2022-07-02 00:21:23 +02:00
parent aa2ea8e896
commit 0fecff8553
1 changed files with 21 additions and 0 deletions

View File

@ -23,8 +23,29 @@
notify:
- reload network
# current os ships with that package and leaks mac addresses into prometheus
# therefore we nuke it
- name: remove prometheus-node-exporter-lua-hostapd_stations
opkg:
name: prometheus-node-exporter-lua-hostapd_stations
state: absent
notify:
- restart prometheus-node-exporter-lua
- name: install prometheus-node-exporter-lua-wifi
opkg:
name: prometheus-node-exporter-lua-wifi
update_cache: yes
notify:
- restart prometheus-node-exporter-lua
handlers:
- name: reload network
service:
name: network
state: reloaded
- name: restart prometheus-node-exporter-lua
service:
name: prometheus-node-exporter-lua
state: restarted