1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

rename interfaces.j2 - rebased - edits

This commit is contained in:
Jerry Vonau 2017-09-16 02:07:18 -05:00
parent 78cd58ca8a
commit c326a49de1
3 changed files with 11 additions and 11 deletions

View file

@ -10,15 +10,15 @@
# 5. In gateway: eth0 is wan, and wlan0 is under br0 (only one adapter under br0) # 5. In gateway: eth0 is wan, and wlan0 is under br0 (only one adapter under br0)
# 6. As a slight concess to auto config, if eth1 exists, make it wan, and force gateway # 6. As a slight concess to auto config, if eth1 exists, make it wan, and force gateway
- name: In upgrade from earlier IIAB 6.2, delete the resolvconf #- name: In upgrade from earlier IIAB 6.2, delete the resolvconf
package: name=resolvconf # package: name=resolvconf
state=absent # state=absent
enabled=False # enabled=False
ignore_errors: True # ignore_errors: True
- name: Get the dhcp client daemon used in recent Raspbian #- name: Get the dhcp client daemon used in recent raspbian
package: name=dhcpcd5 # package: name=dhcpcd5
state=present # state=present
- name: For upgrades from earlier IIAB 6.2, remove br0 file - name: For upgrades from earlier IIAB 6.2, remove br0 file
file: path=/etc/network/interfaces.d/br0 file: path=/etc/network/interfaces.d/br0
@ -41,7 +41,7 @@
- name: Copy the bridge script - name: Copy the bridge script
template: dest=/etc/network/interfaces.d/iiab template: dest=/etc/network/interfaces.d/iiab
src=network/iiab.j2 src=network/systemd.j2
register: interface register: interface
when: iiab_lan_iface == "br0" or wan_ip != "dhcp" when: iiab_lan_iface == "br0" or wan_ip != "dhcp"

View file

@ -39,7 +39,7 @@
- name: Copy the network config script - name: Copy the network config script
template: dest=/etc/network/interfaces.d/iiab template: dest=/etc/network/interfaces.d/iiab
src=network/iiab.j2 src=network/systemd.j2
register: interface register: interface
when: iiab_lan_iface == "br0" or wan_ip != "dhcp" when: iiab_lan_iface == "br0" or wan_ip != "dhcp"