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: set_fact:
gen_uuid: "{{ uuid_response.stdout_lines[0] }}" 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 manage.conf for NetworkManager
- name: Copy the bridge script for NetworkManager
template: template:
dest: /etc/NetworkManager/system-connections/ dest: /etc/NetworkManager/conf.d/wifi-manage.conf
src: network/bridge-br0 src: network/manage.conf.j2
mode: 0600 mode: 0644
when: iiab_network_mode != "Appliance" when: discovered_wireless_iface != "none" and not wifi_up_down
- name: Remove br0 in Appliance Mode for NetworkManager - name: Remove br0 in Appliance Mode for NetworkManager
file: file:
dest: /etc/NetworkManager/system-connections/bridge-br0 dest: /etc/NetworkManager/system-connections/bridge-br0
state: absent state: absent
when: iiab_network_mode == "Appliance" # when: iiab_network_mode == "Appliance"
- name: Removing static for NetworkManager - name: Removing static for NetworkManager
file: file:

View file

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