mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
has_NM use /etc/network/interfaces, need to toggle "manged" in NetworkManager.conf
Alternative keyfile option is possible just like the XO days. http://manpages.ubuntu.com/manpages/zesty/man5/NetworkManager.conf.5.html
This commit is contained in:
parent
47328e6ab5
commit
3510641b41
1 changed files with 7 additions and 1 deletions
|
@ -67,8 +67,14 @@
|
|||
|
||||
- name: Restart the networking service
|
||||
service: name=networking state=restarted
|
||||
when: not nobridge is defined and not no_net_restart
|
||||
when: not nobridge is defined and not has_NM and not no_net_restart
|
||||
|
||||
# NM might have a watcher on this path and we don't have to restart NM
|
||||
- name: Copy the bridge script for has_NM
|
||||
template: dest=/etc/network/interfaces
|
||||
src=network/systemd.j2
|
||||
when: has_NM and iiab_lan_iface == "br0"
|
||||
|
||||
- name: Restart hostapd when WiFi is present
|
||||
service: name=hostapd state=restarted
|
||||
when: iiab_wireless_lan_iface is defined and hostapd_enabled and iiab_network_mode != "Appliance"
|
||||
|
|
Loading…
Reference in a new issue