mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
WIP: iiab.ini vars set in 3 places? For Squid, DansGuardian, Wondershaper
This commit is contained in:
parent
a07a684d13
commit
670746fe88
2 changed files with 42 additions and 29 deletions
|
@ -57,29 +57,35 @@
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
value: "{{ item.value | string }}"
|
value: "{{ item.value | string }}"
|
||||||
with_items:
|
with_items:
|
||||||
- option: dansguardian_enabled
|
#- option: dansguardian_install
|
||||||
value: "{{ dansguardian_enabled }}"
|
# value: "{{ dansguardian_install }}"
|
||||||
- option: squid_enabled
|
#- option: dansguardian_enabled
|
||||||
value: "{{ squid_enabled }}"
|
# value: "{{ dansguardian_enabled }}"
|
||||||
- option: wondershaper_enabled
|
#- option: squid_install
|
||||||
value: "{{ wondershaper_enabled }}"
|
# value: "{{ squid_install }}"
|
||||||
- option: iiab_network_mode_applied
|
#- option: squid_enabled
|
||||||
value: "{{ iiab_network_mode }}"
|
# value: "{{ squid_enabled }}"
|
||||||
- option: dhcpd_enabled
|
#- option: wondershaper_install
|
||||||
value: "{{ dhcpd_enabled }}"
|
# value: "{{ wondershaper_install }}"
|
||||||
- option: dhcp_service2
|
#- option: wondershaper_enabled
|
||||||
value: "{{ dhcp_service2 }}"
|
# value: "{{ wondershaper_enabled }}"
|
||||||
- option: named_enabled
|
- option: iiab_network_mode_applied
|
||||||
value: "{{ named_enabled }}"
|
value: "{{ iiab_network_mode }}"
|
||||||
- option: dnsmasq_enabled
|
- option: dhcpd_enabled
|
||||||
value: "{{ dnsmasq_enabled }}"
|
value: "{{ dhcpd_enabled }}"
|
||||||
- option: no_net_restart
|
- option: dhcp_service2
|
||||||
value: "{{ no_net_restart }}"
|
value: "{{ dhcp_service2 }}"
|
||||||
- option: hostapd_enabled
|
- option: named_enabled
|
||||||
value: "{{ hostapd_enabled }}"
|
value: "{{ named_enabled }}"
|
||||||
- option: host_ssid
|
- option: dnsmasq_enabled
|
||||||
value: "{{ host_ssid }}"
|
value: "{{ dnsmasq_enabled }}"
|
||||||
- option: host_wifi_mode
|
- option: no_net_restart
|
||||||
value: "{{ host_wifi_mode }}"
|
value: "{{ no_net_restart }}"
|
||||||
- option: host_channel
|
- option: hostapd_enabled
|
||||||
value: "{{ host_channel }}"
|
value: "{{ hostapd_enabled }}"
|
||||||
|
- option: host_ssid
|
||||||
|
value: "{{ host_ssid }}"
|
||||||
|
- option: host_wifi_mode
|
||||||
|
value: "{{ host_wifi_mode }}"
|
||||||
|
- option: host_channel
|
||||||
|
value: "{{ host_channel }}"
|
||||||
|
|
|
@ -216,6 +216,7 @@
|
||||||
- gateway/iiab-internet-on
|
- gateway/iiab-internet-on
|
||||||
- gateway/iiab-internet-off
|
- gateway/iiab-internet-off
|
||||||
|
|
||||||
|
|
||||||
- name: Add 'squid' variable values to {{ iiab_ini_file }}
|
- name: Add 'squid' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
path: "{{ iiab_ini_file }}"
|
path: "{{ iiab_ini_file }}"
|
||||||
|
@ -223,7 +224,9 @@
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
value: "{{ item.value | string }}"
|
value: "{{ item.value | string }}"
|
||||||
with_items:
|
with_items:
|
||||||
- option: enabled
|
- option: squid_install
|
||||||
|
value: "{{ squid_install }}"
|
||||||
|
- option: squid_enabled
|
||||||
value: "{{ squid_enabled }}"
|
value: "{{ squid_enabled }}"
|
||||||
|
|
||||||
- name: Add 'dansguardian' variable values to {{ iiab_ini_file }}
|
- name: Add 'dansguardian' variable values to {{ iiab_ini_file }}
|
||||||
|
@ -233,7 +236,9 @@
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
value: "{{ item.value | string }}"
|
value: "{{ item.value | string }}"
|
||||||
with_items:
|
with_items:
|
||||||
- option: enabled
|
- option: dansguardian_install
|
||||||
|
value: "{{ dansguardian_install }}"
|
||||||
|
- option: dansguardian_enabled
|
||||||
value: "{{ dansguardian_enabled }}"
|
value: "{{ dansguardian_enabled }}"
|
||||||
|
|
||||||
- name: Add 'wondershaper' variable values to {{ iiab_ini_file }}
|
- name: Add 'wondershaper' variable values to {{ iiab_ini_file }}
|
||||||
|
@ -243,5 +248,7 @@
|
||||||
option: "{{ item.option }}"
|
option: "{{ item.option }}"
|
||||||
value: "{{ item.value | string }}"
|
value: "{{ item.value | string }}"
|
||||||
with_items:
|
with_items:
|
||||||
- option: enabled
|
- option: wondershaper_install
|
||||||
|
value: "{{ wondershaper_install }}"
|
||||||
|
- option: wondershaper_enabled
|
||||||
value: "{{ wondershaper_enabled }}"
|
value: "{{ wondershaper_enabled }}"
|
||||||
|
|
Loading…
Reference in a new issue