mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
lets try netplan apply to restart the network
This commit is contained in:
parent
ef7ad60800
commit
3c1bcc01ef
2 changed files with 5 additions and 1 deletions
|
@ -53,6 +53,10 @@
|
||||||
creates: /etc/sysconfig/olpc-scripts/setup.d/installed/gateway
|
creates: /etc/sysconfig/olpc-scripts/setup.d/installed/gateway
|
||||||
when: iiab_network_mode == "Gateway"
|
when: iiab_network_mode == "Gateway"
|
||||||
|
|
||||||
|
- name: Reload netplan when Wifi is present on Ubuntu 18+
|
||||||
|
shell: netplan apply
|
||||||
|
when: not no_net_restart and is_ubuntu and netplan.stdout.find("yaml") != -1
|
||||||
|
|
||||||
- name: Waiting {{ hostapd_wait }} seconds for network to stabilize (dnsmasq will fail if br0 isn't in a 'up' state!)
|
- name: Waiting {{ hostapd_wait }} seconds for network to stabilize (dnsmasq will fail if br0 isn't in a 'up' state!)
|
||||||
shell: sleep {{ hostapd_wait }}
|
shell: sleep {{ hostapd_wait }}
|
||||||
|
|
||||||
|
|
|
@ -55,4 +55,4 @@
|
||||||
name: systemd-networkd
|
name: systemd-networkd
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
when: not nobridge is defined and not no_net_restart
|
when: not no_net_restart and netplan.stdout.find("yaml") == -1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue