mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
CentOS - numbers should not have quotes & no config file needed.
Might need to enable resolveconf to have the correct nameserver used -needs further testing to confirm testing
This commit is contained in:
parent
18d66e47f4
commit
47dd40bd26
1 changed files with 5 additions and 5 deletions
|
@ -14,13 +14,13 @@
|
|||
# clear all bridge ifcfg files
|
||||
- name: Now delete slave bridge ifcfg files
|
||||
shell: rm -f /etc/sysconfig/network-scripts/ifcfg-"{{ item }}"
|
||||
when: num_lan_interfaces != "0" or iiab_wireless_lan_iface != "none"
|
||||
when: num_lan_interfaces != 0 or iiab_wireless_lan_iface != "none"
|
||||
with_items:
|
||||
- "{{ ifcfg_slaves.stdout_lines }}"
|
||||
|
||||
- name: Now delete original ifcfg files
|
||||
shell: rm -f /etc/sysconfig/network-scripts/ifcfg-"{{ item }}"
|
||||
when: num_lan_interfaces == "1" and iiab_lan_iface != "br0"
|
||||
when: num_lan_interfaces == 1 and iiab_lan_iface != "br0"
|
||||
with_items:
|
||||
- "{{ discovered_lan_iface }}"
|
||||
|
||||
|
@ -40,7 +40,7 @@
|
|||
shell: nmcli con delete id iiab-LAN
|
||||
ignore_errors: True
|
||||
changed_when: False
|
||||
when: (num_lan_interfaces != "0" or iiab_wireless_lan_iface != "none")
|
||||
when: (num_lan_interfaces != 0 or iiab_wireless_lan_iface != "none")
|
||||
|
||||
## vars/ users should set user_wan_iface to avoid messy redetect
|
||||
- include_tasks: redetect.yml
|
||||
|
@ -53,8 +53,8 @@
|
|||
|
||||
# create ifcfg-WAN if missing
|
||||
# if we get here we have gateway but no ifcfg file
|
||||
- include_tasks: create_ifcfg.yml
|
||||
when: iiab_wan_iface != "none" and not has_WAN and has_ifcfg_gw == "none" and xo_model == "none" and not iiab_demo_mode
|
||||
#- include_tasks: create_ifcfg.yml
|
||||
# when: iiab_wan_iface != "none" and not has_WAN and has_ifcfg_gw == "none" and xo_model == "none" and not iiab_demo_mode
|
||||
|
||||
- name: Configuring LAN interface as iiab_lan_iface
|
||||
template: src=network/ifcfg.j2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue