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

Readability tweaks

This commit is contained in:
A Holt 2018-01-11 00:32:41 -05:00 committed by GitHub
parent 8d36117fd9
commit f700843f69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@
# make it so number 2 vars should use user_wan_iface but we can cover a single
# wired if dhcp fails the interface should revert to LAN, static address should
# stick around but testing gateway response is not preformed.
# stick around but testing gateway response is not performed.
- name: User wants single wired interface as static or dhcp gateway
set_fact:
user_wan_iface: "{{ discovered_lan_iface }}"
@ -154,30 +154,31 @@
when: adapter_count.stdout|int >= "5" and device_gw == "none" and gui_wan_iface == "unset" and gui_static_wan is defined
- name: Add location section to config file
ini_file: dest='{{ iiab_config_file }}'
section=computed_network
option='{{ item.option }}'
value='{{ item.value }}'
ini_file:
dest: "{{ iiab_config_file }}"
section: computed_network
option: "{{ item.option }}"
value: "{{ item.value }}"
with_items:
- option: 'iiab_wan_enabled'
value: '{{ iiab_wan_enabled }}'
- option: 'user_wan_iface'
value: '{{ user_wan_iface }}'
- option: 'iiab_wan_iface'
value: '{{ iiab_wan_iface }}'
- option: 'iiab_lan_enabled'
value: '{{ iiab_lan_enabled }}'
- option: 'user_lan_iface'
value: '{{ user_lan_iface }}'
- option: 'iiab_lan_iface'
value: '{{ iiab_lan_iface }}'
- option: 'iiab_network_mode'
value: '{{ iiab_network_mode }}'
- option: 'hostapd_enabled'
value: '{{ hostapd_enabled }}'
- option: 'host_ssid'
value: '{{ host_ssid }}'
- option: 'host_wifi_mode'
value: '{{ host_wifi_mode }}'
- option: 'host_channel'
value: '{{ host_channel }}'
- option: iiab_wan_enabled
value: "{{ iiab_wan_enabled }}"
- option: user_wan_iface
value: "{{ user_wan_iface }}"
- option: iiab_wan_iface
value: "{{ iiab_wan_iface }}"
- option: iiab_lan_enabled
value: "{{ iiab_lan_enabled }}"
- option: user_lan_iface
value: "{{ user_lan_iface }}"
- option: iiab_lan_iface
value: "{{ iiab_lan_iface }}"
- option: iiab_network_mode
value: "{{ iiab_network_mode }}"
- option: hostapd_enabled
value: "{{ hostapd_enabled }}"
- option: host_ssid
value: "{{ host_ssid }}"
- option: host_wifi_mode
value: "{{ host_wifi_mode }}"
- option: host_channel
value: "{{ host_channel }}"