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:
parent
e741ba35ea
commit
7307962067
2 changed files with 10 additions and 7 deletions
|
@ -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:
|
||||
|
|
4
roles/network/templates/network/manage.conf.j2
Normal file
4
roles/network/templates/network/manage.conf.j2
Normal file
|
@ -0,0 +1,4 @@
|
|||
# IIAB WiFi
|
||||
[device]
|
||||
match-device=interface-name:{{ discovered_wireless_iface }}
|
||||
managed=0
|
Loading…
Add table
Add a link
Reference in a new issue