This commit is contained in:
2024-09-01 22:32:03 +03:00
parent a35fbfbc97
commit 83eacebf09
2 changed files with 3 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
wifi_ssid: "test" wifi_ssid: "test"
wifi_psk: "test12345" wifi_psk: "test12345"
wifi_int_ip: 10.1.10.1 wifi_int_ip: 10.1.10.1
LTE_con_name: LTE
# dhcpd # dhcpd
lease_time: 10800 lease_time: 10800
subnet: 10.1.10.0 subnet: 10.1.10.0

View File

@@ -71,7 +71,7 @@
when: nmcli_failed when: nmcli_failed
- name: Run nmcli to add a connection LTE - name: Run nmcli to add a connection LTE
command: /usr/bin/nmcli c add autoconnect yes save yes con-name LTE ifname {{ lte_int.stdout }} type gsm apn "internet" command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ LTE_con_name }} ifname cdc-wdm0 type gsm apn "internet"
- name: Run nmcli to add WPA-PSK security to the wifi connection - name: Run nmcli to add WPA-PSK security to the wifi connection
command: /usr/bin/nmcli c mod {{ wifi_ssid }} \ command: /usr/bin/nmcli c mod {{ wifi_ssid }} \
@@ -89,7 +89,7 @@
command: /usr/bin/nmcli c up {{ wifi_ssid }} command: /usr/bin/nmcli c up {{ wifi_ssid }}
- name: Run nmcli to activate wifi access point connection - name: Run nmcli to activate wifi access point connection
command: /usr/bin/nmcli c up {{ lte_int.stdout }} command: /usr/bin/nmcli c {{ LTE_con_name }}
# - name: Configure {{ wifi_int.stdout_lines | first }} interface # - name: Configure {{ wifi_int.stdout_lines | first }} interface
# template: # template:
# src: 25-wireless.network.j2 # src: 25-wireless.network.j2