Initial commit

This commit is contained in:
2024-10-30 01:50:38 +01:00
commit 587ca23374
147 changed files with 7521 additions and 0 deletions

View File

@@ -0,0 +1,88 @@
device_bridge_port: "{{ ansible_facts.openwrt_interfaces.mgmnt.device | regex_search('eth[0-9]+|wan') }}"
device_2g_radio: "{{ (ansible_facts.openwrt_wireless | dict2items | selectattr('value.config.band', 'equalto', '2g') | map(attribute='key') | first) | default('none') }}"
device_5g_radio: "{{ (ansible_facts.openwrt_wireless | dict2items | selectattr('value.config.band', 'equalto', '5g') | map(attribute='key') | first) | default('none') }}"
network_devices:
- id: "@device[1]"
name: "br-vlan129"
state: "present"
type: "bridge"
ports: ["{{ device_bridge_port }}.129"]
- id: "@device[2]"
name: "br-vlan137"
state: "present"
type: "bridge"
ports: ["{{ device_bridge_port }}.137"]
- id: "@device[3]"
name: "br-vlan145"
state: "present"
type: "bridge"
ports: ["{{ device_bridge_port }}.145"]
- id: "@device[4]"
name: "br-free"
state: "present"
type: "bridge"
ports: ["{{ device_bridge_port }}.152"]
- id: "@device[5]"
name: "br-oldaurora"
state: "present"
type: "bridge"
ports: ["{{ device_bridge_port }}.128"]
network_interfaces:
- id: "hoste_wifi"
proto: "none"
device: "br-vlan129"
- id: "studenti_wifi"
proto: "none"
device: "br-vlan137"
- id: "ucitele_wifi"
proto: "none"
device: "br-vlan145"
- id: "free_wifi"
proto: "none"
device: "br-free"
- id: "oldaurora"
proto: "none"
device: "br-oldaurora"
wireless_devices_default:
disabled: 0
country: CZ
wireless_interfaces:
- ssid: "aurora"
mode: "ap"
ifname: "aurora"
network: ["hoste_wifi"]
encryption: "wpa2+ccmp"
auth_server: "10.11.99.99"
auth_secret: "Jednokolka123"
dynamic_vlan: "2"
vlan_tagged_interface: "{{ ansible_facts.openwrt_interfaces.mgmnt.device | regex_search('eth[0-9]+|wan') }}"
vlan_bridge: "br-vlan"
vlan_naming: "1"
isolate: "1"
ieee80211r: "1"
ft_over_ds: "0"
device: "{{ ansible_facts.openwrt_wireless | list }}"
# - ssid: "aurora"
# state: "absent"
- ssid: "aurora - free"
mode: "ap"
ifname: "auroraFree"
network: ["free_wifi"]
encryption: "none"
isolate: "1"
device: "{{ ansible_facts.openwrt_wireless | list }}"
- ssid: "Aurora"
mode: "ap"
ifname: "oldAurora"
network: ["oldaurora"]
encryption: "psk2+ccmp"
key: "Kunjedlbaterku"
isolate: "0"
ieee80211r: "1"
ft_over_ds: "0"
device: "{{ ansible_facts.openwrt_wireless | list }}"