1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/4-server-options/tasks/main.yml
georgejhunt 84da40c40d
Cap2 (#1300)
* move captive portal to its own role

* runrole still not working

* make apache name consistent, define py_captive_portal_port

* record android fixes

* some progress -- windows8.1 works but detectportal.firefox active for both mac and windows

* works all platforms

* one captive_portal_install not changed to py_captive...

* port into defaults

* windows 7,8,10,mac,ios,android 5,7

* add # to dnsmasq.d/captive

* guess what android 8 might need

* move captive portal to its own role

* runrole still not working

* make apache name consistent, define py_captive_portal_port

* record android fixes

* some progress -- windows8.1 works but detectportal.firefox active for both mac and windows

* works all platforms

* one captive_portal_install not changed to py_captive...

* port into defaults

* windows 7,8,10,mac,ios,android 5,7

* add # to dnsmasq.d/captive

* guess what android 8 might need

* restart apache2 and dnsmasq in role

* do not hard code apache name

* cut out disfunctional experiments

* variable py_captive_portal_port misspelled

* add wildcard serveralias to box.lan vhost to fix default

* add in STDOUT to log

* remove the py_

* add in msn to urls to capture

* missed a few py_
2018-11-17 20:09:40 -08:00

92 lines
2.4 KiB
YAML

# Server Options
- name: ...IS BEGINNING ==================================
command: echo
- name: Install dnsmasq
include_tasks: roles/network/tasks/dnsmasq.yml
when: dnsmasq_install
tags: base, domain, dnsmasq, network
- name: Install named / BIND
include_tasks: roles/network/tasks/named.yml
when: named_install
tags: base, named, network, domain
- name: Installing captive portal
include_tasks: roles/captive-portal/tasks/main.yml
when: captive_portal_install
tags: base, captive-portal, network, domain
- name: Installing dhcpd
include_tasks: roles/network/tasks/dhcpd.yml
when: dhcpd_install
tags: base, dhcpd, network, domain
- name: Install Squid (and DansGuardian if dansguardian_install)
include_tasks: roles/network/tasks/squid.yml
when: squid_install
tags: base, squid, network, domain
# NETWORK moved to the very end, after Stage 9 (9-LOCAL-ADDONS)
# It can also be run manually using: cd /opt/iiab/iiab; ./iiab-network
#
#- name: NETWORK
# include_role:
# name: network
# # has no "when: XXXXX_install" flag
# tags: base, network
# MANDATORY SO PERHAPS THIS BELONGS IN 3-BASE-SERVER ?
- name: HOMEPAGE
include_role:
name: homepage
# has no "when: XXXXX_install" flag
tags: base, homepage
- name: POSTGRESQL
include_role:
name: postgresql
when: postgresql_install
tags: postgresql, pathagar, moodle
- name: AUTHSERVER
include_role:
name: authserver
when: authserver_install
tags: olpc, authserver
- name: CUPS
include_role:
name: cups
when: cups_install
tags: cups
- name: SAMBA
include_role:
name: samba
when: samba_install
tags: samba
- name: USB-LIB
include_role:
name: usb-lib
when: usb_lib_install
tags: usb-lib
# MANDATORY SO PERHAPS THIS BELONGS IN 3-BASE-SERVER ?
- name: Create a Python interface to iiab.env
template:
src: roles/1-prep/templates/iiab_env.py.j2
dest: /etc/iiab/iiab_env.py
- name: Run /usr/bin/iiab-refresh-wiki-docs (scraper script) to create http://box/info offline documentation. (This script was installed at the beginning of Stage 3 = roles/3-base-server/tasks/main.yml, which ran Apache playbook = roles/httpd/tasks/main.yml)
command: /usr/bin/iiab-refresh-wiki-docs
when: not nodocs
- name: Recording STAGE 4 HAS COMPLETED ==================
lineinfile:
dest: "{{ iiab_env_file }}"
regexp: '^STAGE=*'
line: 'STAGE=4'
state: present