ff
This commit is contained in:
@@ -107,19 +107,19 @@
|
||||
phy2_failed: "{{ phy2_result.rc != 0 }}"
|
||||
|
||||
- name: Run nmcli to add a connection with the specified parameters as a wifi access point if above check has failed
|
||||
command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ wifi_ssid }} ifname {{ wifi_int.stdout }} type wifi ssid {{ wifi_ssid }} mode ap ip4 {{ wifi_int_ip }}
|
||||
command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ wifi_ssid }} ifname {{ wifi_int.stdout }} type wifi ssid {{ wifi_ssid }} mode ap ip4 {{ wifi_int_ip }} ipv6.method "disabled"
|
||||
when: nmcli_failed
|
||||
|
||||
# - name: Configure physical interface {{ phy_int1_name }}
|
||||
# command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ phy_int1_name }} ifname {{ phy1_iface_name }} type ethernet ipv4.method shared ipv4.address {{ phy_int1 }}
|
||||
# command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ phy_int1_name }} ifname {{ phy1_iface_name }} type ethernet ipv4.method shared ipv4.address {{ phy_int1 }} ipv6.method "disabled"
|
||||
# when: phy1_failed
|
||||
|
||||
- name: Configure physical interface {{ phy_int2_name }}
|
||||
command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ phy_int2_name }} ifname {{ phy2_iface_name }} type ethernet ipv4.method shared ipv4.address {{ phy_int2 }}
|
||||
command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ phy_int2_name }} ifname {{ phy2_iface_name }} type ethernet ipv4.method shared ipv4.address {{ phy_int2 }} ipv6.method "disabled"
|
||||
when: phy2_failed
|
||||
|
||||
- name: Run nmcli to add a connection LTE
|
||||
command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ LTE_con_name }} ifname cdc-wdm0 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" ipv6.method "disabled"
|
||||
when: lte_failed
|
||||
|
||||
- name: Run nmcli to add WPA-PSK security to the wifi connection
|
||||
|
||||
Reference in New Issue
Block a user