mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 19:52:06 +00:00
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
# Server Options
|
|
|
|
- name: ...IS BEGINNING ==================================
|
|
file:
|
|
path: "{{ iiab_state_file }}"
|
|
state: touch
|
|
|
|
- name: Install named / BIND
|
|
include_tasks: roles/network/tasks/named.yml
|
|
when: named_install | bool
|
|
|
|
- name: Installing dhcpd
|
|
include_tasks: roles/network/tasks/dhcpd.yml
|
|
when: dhcpd_install | bool
|
|
|
|
- name: Install Squid (and DansGuardian if dansguardian_install)
|
|
include_tasks: roles/network/tasks/squid.yml
|
|
when: squid_install | bool
|
|
|
|
- name: Install Bluetooth - only on Raspberry Pi
|
|
include_role:
|
|
name: bluetooth
|
|
when: is_rpi and bluetooth_install # or bluetooth_installed is defined
|
|
|
|
- name: USB_LIB
|
|
include_role:
|
|
name: usb_lib
|
|
when: usb_lib_install | bool
|
|
|
|
# This is in Stage 4-SERVER-OPTIONS (rather than 3-BASE-SERVER) because var
|
|
# iiab_home_url changes, and may need to be re-run in the field/offline/etc.
|
|
- name: HOMEPAGE
|
|
include_role:
|
|
name: homepage
|
|
# has no "when: XXXXX_install" flag
|
|
|
|
- name: CUPS
|
|
include_role:
|
|
name: cups
|
|
when: cups_install # or cups_installed is defined
|
|
|
|
- name: SAMBA
|
|
include_role:
|
|
name: samba
|
|
when: samba_install # or samba_installed is defined
|
|
|
|
- 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: internet_available and not nodocs
|
|
|
|
- name: Recording STAGE 4 HAS COMPLETED ==================
|
|
lineinfile:
|
|
dest: "{{ iiab_env_file }}"
|
|
regexp: '^STAGE=*'
|
|
line: 'STAGE=4'
|