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.
eae-am-deutschen-platz/playbook_provision_accesspo...

32 lines
716 B
YAML

---
- name: provision aps
hosts: accesspoints
gather_facts: no
vars:
- wifi_ssid: "eap-adp.freifunk-leipzig.de"
- wifi_encryption: "psk2"
- wifi_psk: "1234567890"
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:
src: templates/aruba-ap-105_wireless.j2
dest: /etc/config/wireless
notify:
- reload network
handlers:
- name: reload network
service:
name: network
state: reloaded