mirror of
https://github.com/pigmonkey/spark.git
synced 2026-07-17 16:37:46 +00:00
support wireless regulatory domain
https://wiki.archlinux.org/title/Network_configuration/Wireless#Respecting_the_regulatory_domain
This commit is contained in:
parent
8f688609e1
commit
37822a2562
3 changed files with 15 additions and 0 deletions
|
|
@ -337,3 +337,5 @@ hardened:
|
|||
kernel_parameters: "quiet consoleblank=60"
|
||||
|
||||
power_management: "tlp"
|
||||
|
||||
regdomain: "US"
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
- { role: pass, tags: ['pass'] }
|
||||
- { role: iptables, tags: ['iptables'] }
|
||||
- { role: nettools, tags: ['nettools'] }
|
||||
- { role: regdomain, tags: ['regdomain'], when: "regdomain is defined" }
|
||||
- { role: openvpn, tags: ['openvpn'] }
|
||||
- { role: nmtrust, tags: ['nmtrust'] }
|
||||
- { role: unbound, tags: ['unbound'] }
|
||||
|
|
|
|||
12
roles/regdomain/tasks/main.yml
Normal file
12
roles/regdomain/tasks/main.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- name: Install wireless-regdb
|
||||
pacman:
|
||||
name: wireless-regdb
|
||||
state: present
|
||||
|
||||
- name: Set wireless regulatory domain
|
||||
lineinfile:
|
||||
dest: /etc/conf.d/wireless-regdom
|
||||
regexp: ^WIRELESS_REGDOM
|
||||
state: present
|
||||
line: 'WIRELESS_REGDOM="{{ regdomain }}"'
|
||||
Loading…
Add table
Add a link
Reference in a new issue