This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
2022-06-22 00:05:55 +00:00
|
|
|
---
|
|
|
|
- name: provision aps
|
|
|
|
hosts: accesspoints
|
|
|
|
gather_facts: no
|
2022-06-28 18:59:20 +00:00
|
|
|
vars:
|
2022-06-29 23:31:46 +00:00
|
|
|
- wifi_ssid: "GU Deutscher Platz"
|
|
|
|
- wifi_encryption: "none"
|
2022-06-22 00:05:55 +00:00
|
|
|
tasks:
|
|
|
|
- name: create clients bridge (vlan)
|
|
|
|
blockinfile:
|
|
|
|
path: /etc/config/network
|
|
|
|
block: |
|
|
|
|
config interface 'clients'
|
|
|
|
option type 'bridge'
|
|
|
|
option ifname 'eth0.2'
|
|
|
|
notify:
|
|
|
|
- reload network
|
|
|
|
|
|
|
|
- name: configure wireless
|
|
|
|
template:
|
2022-06-28 18:59:20 +00:00
|
|
|
src: templates/aruba-ap-105_wireless.j2
|
2022-06-22 00:05:55 +00:00
|
|
|
dest: /etc/config/wireless
|
|
|
|
notify:
|
|
|
|
- reload network
|
|
|
|
|
2022-07-01 22:21:23 +00:00
|
|
|
# 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
|
|
|
|
|
2022-06-22 00:05:55 +00:00
|
|
|
handlers:
|
|
|
|
- name: reload network
|
|
|
|
service:
|
|
|
|
name: network
|
|
|
|
state: reloaded
|
2022-07-01 22:21:23 +00:00
|
|
|
|
|
|
|
- name: restart prometheus-node-exporter-lua
|
|
|
|
service:
|
|
|
|
name: prometheus-node-exporter-lua
|
|
|
|
state: restarted
|