1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

manage.conf.j2

This commit is contained in:
Jerry Vonau 2020-04-30 00:56:38 -05:00
parent e741ba35ea
commit 7307962067
2 changed files with 10 additions and 7 deletions

View file

@ -11,19 +11,18 @@
set_fact:
gen_uuid: "{{ uuid_response.stdout_lines[0] }}"
# NM might have a watcher on this path and we don't have to restart NM
- name: Copy the bridge script for NetworkManager
- name: Copy manage.conf for NetworkManager
template:
dest: /etc/NetworkManager/system-connections/
src: network/bridge-br0
mode: 0600
when: iiab_network_mode != "Appliance"
dest: /etc/NetworkManager/conf.d/wifi-manage.conf
src: network/manage.conf.j2
mode: 0644
when: discovered_wireless_iface != "none" and not wifi_up_down
- name: Remove br0 in Appliance Mode for NetworkManager
file:
dest: /etc/NetworkManager/system-connections/bridge-br0
state: absent
when: iiab_network_mode == "Appliance"
# when: iiab_network_mode == "Appliance"
- name: Removing static for NetworkManager
file:

View file

@ -0,0 +1,4 @@
# IIAB WiFi
[device]
match-device=interface-name:{{ discovered_wireless_iface }}
managed=0