mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +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
|
||||
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!)
|
||||
shell: sleep {{ hostapd_wait }}
|
||||
|
||||
|
|
|
@ -55,4 +55,4 @@
|
|||
name: systemd-networkd
|
||||
enabled: yes
|
||||
state: restarted
|
||||
when: not nobridge is defined and not no_net_restart
|
||||
when: not no_net_restart and netplan.stdout.find("yaml") == -1
|
||||
|
|
Loading…
Reference in a new issue