This commit is contained in:
2024-09-09 21:04:15 +03:00
parent 37a26db369
commit 1c7d93d687
7 changed files with 5 additions and 156 deletions

View File

@@ -1,7 +0,0 @@
[Match]
Name={{ wifi_int.stdout_lines | first }}
[Network]
Address={{ wifi_int_ip }}/24
#Gateway=
#DNS=

View File

@@ -1,3 +0,0 @@
# MANAGED BY ANSIBLE DONT TOUCH BY HANDS #
[main]
dns=dnsmasq

View File

@@ -1,8 +0,0 @@
option domain-name-servers {{ dns1 }}, {{ dns2 }};
option subnet-mask {{ netmask }};
option routers {{ wifi_int_ip }};
subnet {{ subnet }} netmask {{ netmask }} {
range {{ range_start }} {{ range_end }};
}
default-lease-time {{ default_lease_time }};
max-lease-time {{ max_lease_time }};

View File

@@ -1,7 +1,7 @@
# MANAGED BY ANSIBLE DONT TOUCH BY HANDS #
{% for interface in without_lte.stdout_lines %}
interface={{ interface }}
{% endfor %}
# {% for interface in without_lte.stdout_lines %}
# interface={{ interface }}
# {% endfor %}
interface=br0
{% for nameserver in nameservers %}
server={{ nameserver }}

View File

@@ -1,45 +0,0 @@
# Set up some logging. VERY useful to see why things aren't working.
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
# Which interface to use and which bridge to join
interface={{ wifi_int.stdout_lines | first }}
#bridge=br0
#
wmm_enabled=1
wme_enabled=1
ieee80211n=1
#ieee80211d=1
#noscan=1
#
# Use this driver for AP stuff. This corresponds to the mac80211 driver
# which most newer cards support.
driver=nl80211
# 802.11 mode and channel, pretty self-explanatory
hw_mode=g
country_code=RU
channel=9
# Set and broadcast the SSID. Stupid double-negatives...
ssid={{ wifi_ssid }}
ignore_broadcast_ssid=0
# 802.11N stuff - Try 40 MHz channels, fall back to 20 MHz
#ieee80211n=1
#ht_capab=[HT40+][SHORT-GI-40]
ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40]
#ht_capab=[HT40-][HT40+][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]
# WPA Authentication
auth_algs=1
wpa=2
wpa_passphrase={{ wifi_psk }}
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
macaddr_acl=0

View File

@@ -1,2 +0,0 @@
[keyfile]
unmanaged-devices=interface-name:{{ wifi_int.stdout_lines | first }}