mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
* change apache_data to apache_user in all * no libapach2 in centos. just php. no php-magick in centos * remove redundant vars entries * do not create apache user * missed one pound sign * soft code all references to apache_user * centos requires older setuptools * revert ansible_lsb.id in xsce.yml * try getting recent pip * move pip download to 2prep so that kalite success is not dependent on iiab coming first * still need to replace setuptools in kalite * add curl -- needed in debian * massivly substitue iiab for xsce, and rename files * completed runansible * centos fixes,install pip * appliance means no iptables rules * change to earlier version of setuptools for centos * delete file duplicate, hopefully unnecessary. generate the offline docs * wiki docs errors * create the admin group -- deleted earlier * use the --yes option with pip uninstall * base of repo moved from schoolserver to iiab, unleashkids.org->iiab.io * network detection broken due to tupo
35 lines
1 KiB
YAML
35 lines
1 KiB
YAML
- name: No LAN configured - Appliance mode
|
|
set_fact:
|
|
dansguardian_enabled: False
|
|
squid_enabled: False
|
|
named_enabled: True
|
|
dhcpd_enabled: False
|
|
wondershaper_enabled: False
|
|
iiab_network_mode: "Appliance"
|
|
when: iiab_lan_iface == "none" or user_lan_iface == "none"
|
|
|
|
- name: LAN configured - LanController mode
|
|
set_fact:
|
|
named_enabled: True
|
|
dhcpd_enabled: True
|
|
dansguardian_enabled: False
|
|
squid_enabled: False
|
|
wondershaper_enabled: False
|
|
iiab_network_mode: "LanController"
|
|
when: iiab_lan_iface != "" and iiab_wan_iface == "none"
|
|
|
|
- name: LAN configured - Gateway mode
|
|
set_fact:
|
|
named_enabled: True
|
|
dhcpd_enabled: True
|
|
iiab_network_mode: "Gateway"
|
|
when: 'iiab_lan_iface != "none" and iiab_wan_iface != "none"'
|
|
|
|
- name: Add location section to config file
|
|
ini_file: dest='{{ iiab_config_file }}'
|
|
section=network
|
|
option='{{ item.option }}'
|
|
value='{{ item.value }}'
|
|
with_items:
|
|
- option: 'iiab_network_mode_applied'
|
|
value: '{{ iiab_network_mode }}'
|