2017-10-27 02:01:02 +00:00
|
|
|
# Server Options
|
2017-11-09 13:24:21 +00:00
|
|
|
|
2017-10-27 05:41:47 +00:00
|
|
|
- name: ...IS BEGINNING ==================================
|
2020-09-21 18:25:08 +00:00
|
|
|
stat:
|
|
|
|
path: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
|
|
|
|
register: iiab_state_file_check
|
2017-10-27 02:01:02 +00:00
|
|
|
|
2020-09-21 20:41:20 +00:00
|
|
|
# 2020-09-21: Why is checking for iiab_state.yml in Stage 4 out of curiosity?
|
|
|
|
# Possibly move this to Stage 0? Either way...this is a STRICT CHECK in case
|
|
|
|
# {iiab-stages.yml, run-one-role.yml, etc} omit the file from "vars_files:"
|
|
|
|
|
2020-09-21 18:25:08 +00:00
|
|
|
- name: ENFORCE precondition that {{ iiab_state_file }} MUST exist
|
|
|
|
assert:
|
|
|
|
that: iiab_state_file_check.stat.exists
|
|
|
|
|
|
|
|
- name: Install pylibs (IIAB's python libs)
|
2020-04-27 21:34:32 +00:00
|
|
|
include_role:
|
|
|
|
name: pylibs
|
2020-10-16 20:46:19 +00:00
|
|
|
#when: pylibs_install # Flag might be created in future?
|
2020-04-27 21:34:32 +00:00
|
|
|
|
2021-07-26 19:24:05 +00:00
|
|
|
- name: SSHD - also run by roles/1-prep/tasks/main.yml as required by OpenVPN
|
2020-09-22 13:52:26 +00:00
|
|
|
include_role:
|
|
|
|
name: sshd
|
2020-10-16 20:46:19 +00:00
|
|
|
when: sshd_install
|
2020-09-22 13:52:26 +00:00
|
|
|
|
2021-07-26 19:24:05 +00:00
|
|
|
# UNMAINTAINED
|
2018-10-31 01:59:07 +00:00
|
|
|
- name: Install named / BIND
|
2017-11-10 06:09:10 +00:00
|
|
|
include_tasks: roles/network/tasks/named.yml
|
2021-07-26 19:24:05 +00:00
|
|
|
when: named_install is defined and named_install
|
2017-11-10 06:09:10 +00:00
|
|
|
|
2021-07-26 19:24:05 +00:00
|
|
|
# UNMAINTAINED
|
2020-09-21 18:25:08 +00:00
|
|
|
- name: Install dhcpd
|
2017-11-10 06:09:10 +00:00
|
|
|
include_tasks: roles/network/tasks/dhcpd.yml
|
2021-07-26 19:24:05 +00:00
|
|
|
when: dhcpd_install is defined and dhcpd_install
|
2017-11-10 06:09:10 +00:00
|
|
|
|
2021-07-26 19:24:05 +00:00
|
|
|
# UNMAINTAINED
|
2018-10-31 01:59:07 +00:00
|
|
|
- name: Install Squid (and DansGuardian if dansguardian_install)
|
2017-11-10 06:09:10 +00:00
|
|
|
include_tasks: roles/network/tasks/squid.yml
|
2021-07-26 19:24:05 +00:00
|
|
|
when: squid_install is defined and squid_install
|
2017-11-10 06:09:10 +00:00
|
|
|
|
2019-06-28 21:33:57 +00:00
|
|
|
- name: Install Bluetooth - only on Raspberry Pi
|
2019-06-15 19:22:16 +00:00
|
|
|
include_role:
|
|
|
|
name: bluetooth
|
2020-09-21 18:25:08 +00:00
|
|
|
when: bluetooth_install and rpi_model != "none"
|
2019-06-15 19:22:16 +00:00
|
|
|
|
2020-01-30 09:00:00 +00:00
|
|
|
- name: USB_LIB
|
2019-11-02 10:27:42 +00:00
|
|
|
include_role:
|
2020-01-30 09:00:00 +00:00
|
|
|
name: usb_lib
|
2020-10-16 20:46:19 +00:00
|
|
|
when: usb_lib_install
|
2019-11-02 10:27:42 +00:00
|
|
|
|
2017-10-27 02:44:06 +00:00
|
|
|
- name: CUPS
|
2017-10-27 02:01:02 +00:00
|
|
|
include_role:
|
2017-10-27 02:44:06 +00:00
|
|
|
name: cups
|
2020-10-16 20:46:19 +00:00
|
|
|
when: cups_install
|
2017-10-27 02:01:02 +00:00
|
|
|
|
|
|
|
- name: SAMBA
|
|
|
|
include_role:
|
|
|
|
name: samba
|
2020-10-16 20:46:19 +00:00
|
|
|
when: samba_install
|
2020-02-12 08:08:16 +00:00
|
|
|
|
2020-10-08 16:04:50 +00:00
|
|
|
# 2020-02-17: What was roles/homepage lives in roles/www_options
|
|
|
|
# 2020-10-08: Softcoded iiab_home_url should work (e.g. using local_vars.yml or
|
|
|
|
# Admin Console) for more field options, e.g. changing /library/www/html/home
|
|
|
|
# to WordPress or Moodle even when offline? @tim-moody cautions that this is
|
|
|
|
# untested for several years, so let's keep an eye on it! iiab/iiab#2560
|
2020-02-12 08:08:16 +00:00
|
|
|
|
2020-03-08 19:26:05 +00:00
|
|
|
- name: WWW_OPTIONS (WWW_BASE should have been installed earlier)
|
2020-02-13 01:53:36 +00:00
|
|
|
include_role:
|
2020-03-08 19:26:05 +00:00
|
|
|
name: www_options
|
2020-10-16 20:46:19 +00:00
|
|
|
#when: www_options_install # Flag might be created in future?
|
2017-10-07 03:09:35 +00:00
|
|
|
|
2017-10-30 17:14:09 +00:00
|
|
|
- name: Recording STAGE 4 HAS COMPLETED ==================
|
2018-02-13 03:12:14 +00:00
|
|
|
lineinfile:
|
2020-02-04 00:54:04 +00:00
|
|
|
path: "{{ iiab_env_file }}"
|
2018-02-13 03:12:14 +00:00
|
|
|
regexp: '^STAGE=*'
|
|
|
|
line: 'STAGE=4'
|