kravietz.hostapd
Rollenname
Rolle zur Einrichtung und Konfiguration von hostapd
mithilfe von systemd.service
, die alle Konfigurationsoptionen unterstützt.
Anforderungen
Keine.
Rollenvariablen
Schnittstelle, um hostapd
auszuführen. Dies wird verwendet, um [email protected]
in systemd
zu starten.
hostapd_interface: wlan1
Das folgende hostapd_config
-Wörterbuch wird eins zu eins in die Hostapd-Konfigurationsdatei konvertiert. Bitte siehe die hostapd.conf Referenz für Details zu den einzelnen Optionen:
hostapd_config:
country_code: DE
bridge: br0
interface: "{{ hostapd_interface }}"
driver: nl80211
ssid: "MeinWLAN"
hw_mode: g
channel: 9
wmm_enabled: 0
macaddr_acl: 0
auth_algs: 1
wpa: 2
wpa_passphrase: "OhGae6hay0rooRi0poo7" # mit ansible-vault schützen
wpa_key_mgmt: WPA-PSK WPA-PSK-SHA256
wpa_pairwise: TKIP CCMP
rsn_pairwise: CCMP
ctrl_interface: /var/run/hostapd
Abhängigkeiten
Wenn Sie ein WiFi-Subnetz in das LAN einfügen, können Sie auch eine Brücke mit der shibumi.systemd-conf Rolle einrichten, wie im folgenden Beispiel:
systemd_conf_network:
10-lan:
- Match:
- Name: br0
- Network:
- Address: '192.168.1.251/24'
- Gateway: '192.168.1.252'
20-eth:
- Match:
- Name: eth0
- Network:
- Bridge: br0
systemd_conf_netdev:
10-bridge:
- NetDev:
- Name: br0
- Kind: bridge
Beispiel-Playbook
Angenommen, die oben genannte Konfiguration befindet sich in host_vars
:
- hosts: access_point
roles:
- kravietz.hostapd
- shibumi.systemd-conf
Lizenz
GPLv3
Autoreninformationen
Paweł Krawczyk https://krvtz.net/
Über das Projekt
Role to set up and configure `hostapd` using `systemd.service` that supports all configuration options.
Installieren
ansible-galaxy install kravietz.hostapd
Lizenz
gpl-3.0
Downloads
668
Besitzer
Information security, DevOps and DevSecOps professional from Poland living in the UK