1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Clean tasks/main.yml in stages 1, 3, 4, 6

This commit is contained in:
root 2020-09-21 14:25:08 -04:00
parent 0b10373b84
commit 1370115e23
4 changed files with 18 additions and 11 deletions

View file

@ -78,12 +78,12 @@
- name: SSHD - name: SSHD
include_role: include_role:
name: sshd name: sshd
# has no "when: XXXXX_install" flag #when: sshd_install | bool # Flag might be created in future?
- name: IIAB-ADMIN - name: IIAB-ADMIN
include_role: include_role:
name: iiab-admin name: iiab-admin
# has no "when: XXXXX_install" flag #when: iiab-admin_install | bool # Flag might be created in future?
- name: OPENVPN - name: OPENVPN
include_role: include_role:

View file

@ -27,6 +27,7 @@
- name: WWW_BASE (WWW_OPTIONS should be installed later) - name: WWW_BASE (WWW_OPTIONS should be installed later)
include_role: include_role:
name: www_base name: www_base
#when: www_base_install | bool # Flag might be created in future?
- name: Recording STAGE 3 HAS COMPLETED ===================== - name: Recording STAGE 3 HAS COMPLETED =====================
lineinfile: lineinfile:

View file

@ -1,19 +1,25 @@
# Server Options # Server Options
- name: ...IS BEGINNING ================================== - name: ...IS BEGINNING ==================================
file: stat:
path: "{{ iiab_state_file }}" path: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
state: touch register: iiab_state_file_check
- name: Install IIAB's python libs # STRICT CHECK in case {iiab-stages.yml, run-one-role.yml, etc} omit this:
- name: ENFORCE precondition that {{ iiab_state_file }} MUST exist
assert:
that: iiab_state_file_check.stat.exists
- name: Install pylibs (IIAB's python libs)
include_role: include_role:
name: pylibs name: pylibs
#when: pylibs_install | bool # Flag might be created in future?
- name: Install named / BIND - name: Install named / BIND
include_tasks: roles/network/tasks/named.yml include_tasks: roles/network/tasks/named.yml
when: named_install | bool when: named_install | bool
- name: Installing dhcpd - name: Install dhcpd
include_tasks: roles/network/tasks/dhcpd.yml include_tasks: roles/network/tasks/dhcpd.yml
when: dhcpd_install | bool when: dhcpd_install | bool
@ -24,7 +30,7 @@
- name: Install Bluetooth - only on Raspberry Pi - name: Install Bluetooth - only on Raspberry Pi
include_role: include_role:
name: bluetooth name: bluetooth
when: rpi_model != "none" and bluetooth_install when: bluetooth_install and rpi_model != "none"
- name: USB_LIB - name: USB_LIB
include_role: include_role:
@ -48,8 +54,7 @@
- name: WWW_OPTIONS (WWW_BASE should have been installed earlier) - name: WWW_OPTIONS (WWW_BASE should have been installed earlier)
include_role: include_role:
name: www_options name: www_options
#when: www_options_install | bool #when: www_options_install | bool # Flag might be created in future?
#when: apache_install or nginx_install
- name: Recording STAGE 4 HAS COMPLETED ================== - name: Recording STAGE 4 HAS COMPLETED ==================
lineinfile: lineinfile:

View file

@ -3,10 +3,11 @@
- name: ...IS BEGINNING ==================================== - name: ...IS BEGINNING ====================================
command: echo command: echo
# UNMAINTAINED
- name: AZURACAST - name: AZURACAST
include_role: include_role:
name: azuracast name: azuracast
when: azuracast_install | bool when: azuracast_install is defined and azuracast_install
# UNMAINTAINED # UNMAINTAINED
- name: DOKUWIKI - name: DOKUWIKI