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

adjust debian.yml

This commit is contained in:
Jerry Vonau 2017-11-01 16:26:40 -05:00
parent 312f5a99ee
commit f2d3207ac3

View file

@ -33,17 +33,11 @@
template: dest=/etc/dhcpcd.conf template: dest=/etc/dhcpcd.conf
src=network/dhcpcd.conf.j2 src=network/dhcpcd.conf.j2
when: dhcpcd_result == "enabled" when: dhcpcd_result == "enabled"
#and (iiab_lan_iface == "br0" or wan_ip != "dhcp")
- 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/systemd.j2 src=network/systemd.j2
register: interface when: not is_rpi and (iiab_lan_iface == "br0" or wan_ip != "dhcp")
when: iiab_lan_iface == "br0" or wan_ip != "dhcp"
- name: If this was a change, things need to shift
service: name=hostapd state=stopped
# when: interface.changed
- name: bind may be affected - name: bind may be affected
service: name={{ dns_service }} state=stopped service: name={{ dns_service }} state=stopped
@ -68,11 +62,11 @@
- name: restart the networking service - name: restart the networking service
service: name=networking state=restarted service: name=networking state=restarted
when: interface.changed and not is_VM is defined when: not is_rpi or not is_VM is defined
#- name: restart hostapd when wifi is present - name: restart hostapd when wifi is present
# service: name=hostapd state=started service: name=hostapd state=restarted
# when: iiab_wireless_lan_iface != "none" and hostapd_enabled and iiab_network_mode != "Appliance" when: iiab_wireless_lan_iface != "none" and hostapd_enabled and iiab_network_mode != "Appliance"
#- name: dhcp_server may be affected - starting - user choice #- name: dhcp_server may be affected - starting - user choice
# service: name={{ dhcp_service2 }} state=started # service: name={{ dhcp_service2 }} state=started