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

Update ifcfg_mods.yml

This commit is contained in:
A Holt 2018-07-17 01:48:19 -04:00 committed by GitHub
parent 44c1c0293a
commit 7790fd6624
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,16 +26,22 @@
with_items: with_items:
- "{{ discovered_lan_iface }}" - "{{ discovered_lan_iface }}"
- name: bind may be affected - name: BIND may be affected
service: name={{ dns_service }} state=stopped service:
name: "{{ dns_service }}"
state: stopped
when: named_install and dnsmasq_enabled when: named_install and dnsmasq_enabled
- name: dhcpd_server may be affected - stopping dhcpd - name: dhcpd_server may be affected - stopping dhcpd
service: name=dhcpd state=stopped service:
name: dhcpd
state: stopped
when: dhcpd_install when: dhcpd_install
- name: dhcpd_server may be affected - stopping dnsmasq - name: dhcpd_server may be affected - stopping dnsmasq
service: name=dnsmasq state=stopped service:
name: dnsmasq
state: stopped
when: dnsmasq_install when: dnsmasq_install
- name: Stop the LAN/Bridge deleting iiab-LAN - name: Stop the LAN/Bridge deleting iiab-LAN
@ -65,15 +71,17 @@
# can be more than one wired interface # can be more than one wired interface
- name: Wired enslaving ## lan_list_result ## to Bridge - name: Wired enslaving ## lan_list_result ## to Bridge
template: src=network/ifcfg-slave.j2 template:
dest=/etc/sysconfig/network-scripts/ifcfg-{{ item|trim }} src: network/ifcfg-slave.j2
dest: "/etc/sysconfig/network-scripts/ifcfg-{{ item|trim }}"
when: iiab_lan_iface == "br0" and item|trim != iiab_wireless_lan_iface and item|trim != iiab_wan_iface when: iiab_lan_iface == "br0" and item|trim != iiab_wireless_lan_iface and item|trim != iiab_wan_iface
with_items: with_items:
- "{{ lan_list_result.stdout_lines }}" - "{{ lan_list_result.stdout_lines }}"
- name: WiFi enslaving {{ iiab_wireless_lan_iface }} to Bridge - name: WiFi enslaving {{ iiab_wireless_lan_iface }} to Bridge
template: src=network/wifi-slave.j2 template:
dest=/etc/sysconfig/network-scripts/ifcfg-{{ iiab_wireless_lan_iface }} src: network/wifi-slave.j2
dest: "/etc/sysconfig/network-scripts/ifcfg-{{ iiab_wireless_lan_iface }}"
when: iiab_lan_iface == "br0" and iiab_wireless_lan_iface != "none" when: iiab_lan_iface == "br0" and iiab_wireless_lan_iface != "none"
tags: tags:
- network - network
@ -81,7 +89,7 @@
- include_tasks: enable_wan.yml - include_tasks: enable_wan.yml
when: not installing and not iiab_demo_mode when: not installing and not iiab_demo_mode
- name: ask systemd to reread the unit files, picks up changes done - name: Ask systemd to reread the unit files, picks up changes done
systemd: systemd:
daemon_reload: yes daemon_reload: yes
when: not installing when: not installing