This commit is contained in:
2024-09-01 21:18:34 +03:00
parent 7211cd4555
commit 9108e5f4d7
3 changed files with 23 additions and 5 deletions

View File

@@ -9,6 +9,7 @@
- networkmanager - networkmanager
- modemmanager - modemmanager
- iptables - iptables
- dnsmasq
# - hostapd # - hostapd
# - dhcpd # - dhcpd
wifi_ssid: "test" wifi_ssid: "test"

View File

@@ -17,11 +17,23 @@
state: started state: started
enabled: true enabled: true
# - name: Start enable iptables - name: Enable ModemManager
# service: service:
# name: iptables name: ModemManager
# state: started state: started
# enabled: true enabled: true
- name: Start enable iptables
service:
name: iptables
state: started
enabled: true
- name: Disable dnsmasq
service:
name: dnsmasq
state: stopped
enabled: false
- name: Get physical interfaces names - name: Get physical interfaces names
command: find /sys/class/net -type l -lname '*wlp*' -printf '%f\n' command: find /sys/class/net -type l -lname '*wlp*' -printf '%f\n'

View File

@@ -0,0 +1,5 @@
interface={{ wifi_int.stdout_lines | first }}
dhcp-range={{ range_start }},{{ range_end }},2h
log-queries
#log-dhcp
log-facility=/var/log/dnsmasq.log