mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-24 11:29:09 +00:00
Add support for wireless connections
WPA-PSK and WPA-EAP are supported. Uses existing 802.1x features of the role. Added extra functionality to ArgValidatorStr to enforce a min and max length.
This commit is contained in:
parent
47ad99c7f0
commit
51f8e5b05f
12 changed files with 807 additions and 23 deletions
13
examples/wireless_wpa_psk.yml
Normal file
13
examples/wireless_wpa_psk.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
---
|
||||
- hosts: network-test
|
||||
vars:
|
||||
network_connections:
|
||||
- name: wlan0
|
||||
type: wireless
|
||||
wireless:
|
||||
ssid: "My WPA2-PSK Network"
|
||||
key_mgmt: "wpa-psk"
|
||||
# recommend vault encrypting the wireless password
|
||||
# see https://docs.ansible.com/ansible/latest/user_guide/vault.html
|
||||
password: "p@55w0rD"
|
||||
Loading…
Add table
Add a link
Reference in a new issue