mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +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
135 lines
2.5 KiB
YAML
135 lines
2.5 KiB
YAML
- include: computed_network.yml
|
|
when: not installing
|
|
tags:
|
|
- network
|
|
- network-discover
|
|
|
|
- include: display-discover.yml
|
|
tags:
|
|
- network-discover
|
|
|
|
- name: Set hostname
|
|
template: dest=/etc/hostname
|
|
src=network/hostname.j2
|
|
owner=root
|
|
mode=0644
|
|
tags:
|
|
- network
|
|
- domain
|
|
|
|
- name: Configure /etc/sysconfig/network
|
|
template: src=network/sysconfig.network.j2
|
|
dest=/etc/sysconfig/network
|
|
owner=root
|
|
group=root
|
|
mode=0644
|
|
tags:
|
|
- network
|
|
- domain
|
|
|
|
- name: Create xs_domain_name flag
|
|
template: src=network/{{ item }}.j2
|
|
dest=/etc/sysconfig/{{ item }}
|
|
mode=0644
|
|
with_items:
|
|
- xs_domain_name
|
|
register: domainname
|
|
tags:
|
|
- network
|
|
- domain
|
|
|
|
- name: Domain name did not change setting iiab_prepped
|
|
set_fact:
|
|
iiab_prepped: True
|
|
when: not domainname.changed and iiab_base_ver == gui_version
|
|
|
|
##### Start static ip address info for first run #####
|
|
#- include: static.yml
|
|
# when: 'iiab_wan_iface != "none" and wan_ip != "dhcp"'
|
|
##### End static ip address info
|
|
|
|
- include: hosts.yml
|
|
tags:
|
|
- network
|
|
|
|
- include: named.yml
|
|
# when: not iiab_prepped
|
|
tags:
|
|
- named
|
|
- network
|
|
|
|
- include: dhcpd.yml
|
|
# when: not iiab_prepped
|
|
tags:
|
|
- dhcpd
|
|
- network
|
|
|
|
- include: squid.yml
|
|
# when: not iiab_prepped
|
|
tags:
|
|
- squid
|
|
- network
|
|
|
|
- include: wondershaper.yml
|
|
when: not iiab_prepped
|
|
tags:
|
|
- wondershaper
|
|
- network
|
|
|
|
- include: iptables.yml
|
|
# when: not iiab_prepped
|
|
tags:
|
|
- iptables
|
|
- network
|
|
|
|
- include: avahi.yml
|
|
tags:
|
|
- network
|
|
|
|
- name: ask systemd to reread the unit files, picks up changes done
|
|
shell: systemctl daemon-reload
|
|
when: not installing
|
|
|
|
- include: ifcfg_mods.yml
|
|
tags:
|
|
- network
|
|
when: is_redhat and not installing
|
|
|
|
- include: debian.yml
|
|
tags:
|
|
- network
|
|
when: is_debuntu and not is_rpi and not installing
|
|
|
|
- include: rpi_debian.yml
|
|
tags:
|
|
- network
|
|
when: is_debuntu and is_rpi and not installing
|
|
|
|
- name: Create xs network flags
|
|
template: src=network/{{ item }}.j2
|
|
dest=/etc/sysconfig/{{ item }}
|
|
mode=0644
|
|
with_items:
|
|
- xs_wan_device
|
|
- xs_lan_device
|
|
when: not installing
|
|
tags:
|
|
- network
|
|
|
|
- include: computed_services.yml
|
|
tags:
|
|
- network
|
|
|
|
- include: enable_services.yml
|
|
tags:
|
|
- network
|
|
|
|
- include: restart.yml
|
|
when: not installing
|
|
tags:
|
|
- network
|
|
|
|
- include: hostapd.yml
|
|
when: not installing
|
|
tags:
|
|
- network
|