1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +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:
Jerry Vonau 2017-11-22 10:34:42 -06:00
parent 47328e6ab5
commit 3510641b41

View file

@ -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"