mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
just move our config to interfaces.d (#247)
* just move our config to interfaces.d
* debian needs same fix as rpi
* try to recover/upgrade from putting wrong content in interfaces -- restore it
* modify dhcpcd.conf for gui static changes
* cannot comment out jinja2 with #, need to wipe the {%
* deny Lan for dhcpcd, will need work if wifi is used upstream
* attempt to change ip from console without requiring a reboot
* Revert "attempt to change ip from console without requiring a reboot"
This reverts commit 14c7499cdc.
Better not to break an upstream connection
* cleanup the iiab.j2 template --changing only comment lines
This commit is contained in:
parent
0883c09cf0
commit
ed2b5d78f2
5 changed files with 123 additions and 62 deletions
|
|
@ -29,9 +29,13 @@
|
|||
gui_desired_network_role: "lan_controller"
|
||||
when: not gui_desired_network_role is defined
|
||||
|
||||
- name: Copy the bridge script -- was in interfaces.d/
|
||||
- name: Recover from putting config in /etc/network/interfaces
|
||||
template: dest=/etc/network/interfaces
|
||||
src=network/interfaces.j2
|
||||
|
||||
- name: Copy the bridge script
|
||||
template: dest=/etc/network/interfaces.d/iiab
|
||||
src=network/iiab.j2
|
||||
register: interface
|
||||
|
||||
- name: start up the dhcpcd service
|
||||
|
|
|
|||
|
|
@ -27,9 +27,17 @@
|
|||
gui_desired_network_role: "LanController"
|
||||
when: not gui_desired_network_role is defined
|
||||
|
||||
- name: Copy the network config script -- previously in /etc/network/interfaces.d/br0
|
||||
- name: Rewrite the /etc/network/interfaces file which we currupted
|
||||
template: dest=/etc/network/interfaces
|
||||
src=network/interfaces.j2
|
||||
|
||||
- name: Supply our own dhcpcd.conf
|
||||
template: dest=/etc/dhcpcd.conf
|
||||
src=network/dhcpcd.conf
|
||||
|
||||
- name: Copy the network config script
|
||||
template: dest=/etc/network/interfaces.d/iiab
|
||||
src=network/iiab.j2
|
||||
register: interface
|
||||
|
||||
- name: If this was a change, things need to shift
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue