mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	refined
This commit is contained in:
		
							parent
							
								
									68cd077b40
								
							
						
					
					
						commit
						1df73baf70
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -75,7 +75,7 @@
 | 
			
		|||
# single interface vars/ users would need to set iiab_wan_enabled False as above, to disable the WAN
 | 
			
		||||
# and set user_lan_iface = <device> to suppress the auto detection for the same effect.
 | 
			
		||||
 | 
			
		||||
- name: Setting user_lan_iface for LanController for single interface
 | 
			
		||||
- name: Setting user_lan_iface for 'LanController' for single interface
 | 
			
		||||
  set_fact:
 | 
			
		||||
     user_lan_iface: "{{ discovered_wan_iface }}"
 | 
			
		||||
  when: discovered_wan_iface != "none" and num_lan_interfaces == "0" and gui_desired_network_role is defined and gui_desired_network_role == "LanController"
 | 
			
		||||
| 
						 | 
				
			
			@ -93,14 +93,14 @@
 | 
			
		|||
  when: 'not iiab_lan_enabled'
 | 
			
		||||
 | 
			
		||||
# gui wants Appliance Note: could of used iiab_lan_enabled false
 | 
			
		||||
- name: Setting GUI wants Appliance
 | 
			
		||||
- name: Setting GUI wants 'Appliance'
 | 
			
		||||
  set_fact:
 | 
			
		||||
    user_lan_iface: "none"
 | 
			
		||||
    iiab_gateway_enabled: "False"
 | 
			
		||||
  when: gui_desired_network_role is defined and gui_desired_network_role == "Appliance"
 | 
			
		||||
 | 
			
		||||
# gui wants Gateway
 | 
			
		||||
- name: Setting GUI wants and has active Gateway
 | 
			
		||||
- name: Setting GUI wants and has active 'Gateway'
 | 
			
		||||
  set_fact:
 | 
			
		||||
    user_lan_iface: "auto"
 | 
			
		||||
    user_wan_iface: "{{ iiab_wan_iface }}"
 | 
			
		||||
| 
						 | 
				
			
			@ -146,7 +146,7 @@
 | 
			
		|||
    iiab_network_mode: "No_network_found"
 | 
			
		||||
  when: adapter_count.stdout|int == "0"
 | 
			
		||||
 | 
			
		||||
# well if there ever was a point to tell the user thing are FUBAR this is it.
 | 
			
		||||
# well if there ever was a point to tell the user things are FUBAR this is it.
 | 
			
		||||
- name: I'm not guessing declare gateway please
 | 
			
		||||
  set_fact:
 | 
			
		||||
    iiab_network_mode: "Undetectable_use_local_vars"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue