mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
1-prep/tasks/main.yml sections: less doomscrolling, more readability
This commit is contained in:
parent
b31eb6541c
commit
c849249ca4
1 changed files with 5 additions and 11 deletions
|
@ -7,6 +7,7 @@
|
||||||
include_tasks: roles/network/tasks/dnsmasq.yml
|
include_tasks: roles/network/tasks/dnsmasq.yml
|
||||||
#when: dnsmasq_install # Flag might be used in future?
|
#when: dnsmasq_install # Flag might be used in future?
|
||||||
|
|
||||||
|
|
||||||
- name: Install uuid-runtime package (debuntu)
|
- name: Install uuid-runtime package (debuntu)
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
|
@ -37,13 +38,6 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
uuid: "{{ stored_uuid.stdout_lines[0] }}"
|
uuid: "{{ stored_uuid.stdout_lines[0] }}"
|
||||||
|
|
||||||
#- name: Does directory /ro exist? (indicating OS is Ubermix)
|
|
||||||
# stat:
|
|
||||||
# path: /ro
|
|
||||||
# register: ro_dir
|
|
||||||
|
|
||||||
#- debug:
|
|
||||||
# var: ro_dir
|
|
||||||
|
|
||||||
- name: Does 'ubermix' exist in /etc/lsb-release?
|
- name: Does 'ubermix' exist in /etc/lsb-release?
|
||||||
shell: grep -i ubermix /etc/lsb-release # Pipe to cat to avoid red errors?
|
shell: grep -i ubermix /etc/lsb-release # Pipe to cat to avoid red errors?
|
||||||
|
@ -52,9 +46,6 @@
|
||||||
#ignore_errors: True
|
#ignore_errors: True
|
||||||
#check_mode: no
|
#check_mode: no
|
||||||
|
|
||||||
#- debug:
|
|
||||||
# var: grep_ubermix
|
|
||||||
|
|
||||||
- name: If so, install /etc/tmpfiles.d/iiab.conf to create /var/log subdirs on each boot, so {Apache, MongoDB, Munin} run on Ubermix
|
- name: If so, install /etc/tmpfiles.d/iiab.conf to create /var/log subdirs on each boot, so {Apache, MongoDB, Munin} run on Ubermix
|
||||||
copy:
|
copy:
|
||||||
src: roles/1-prep/files/iiab.conf
|
src: roles/1-prep/files/iiab.conf
|
||||||
|
@ -64,7 +55,6 @@
|
||||||
# mode: '0644'
|
# mode: '0644'
|
||||||
force: yes
|
force: yes
|
||||||
when: grep_ubermix.rc == 0 # 1 if absent in file, 2 if file doesn't exist
|
when: grep_ubermix.rc == 0 # 1 if absent in file, 2 if file doesn't exist
|
||||||
#when: ro_dir.stat.exists
|
|
||||||
|
|
||||||
# 2020-03-19: for KA Lite, but moved from roles/kalite/tasks/install.yml
|
# 2020-03-19: for KA Lite, but moved from roles/kalite/tasks/install.yml
|
||||||
# This effectively does nothing at all on Ubuntu & Raspbian, where libgeos-*
|
# This effectively does nothing at all on Ubuntu & Raspbian, where libgeos-*
|
||||||
|
@ -75,6 +65,7 @@
|
||||||
shell: apt -y remove "libgeos-*"
|
shell: apt -y remove "libgeos-*"
|
||||||
when: grep_ubermix.rc == 0 # 1 if absent in file, 2 if file doesn't exist
|
when: grep_ubermix.rc == 0 # 1 if absent in file, 2 if file doesn't exist
|
||||||
|
|
||||||
|
|
||||||
# Required by OpenVPN below. Also run by roles/4-server-options/tasks/main.yml
|
# Required by OpenVPN below. Also run by roles/4-server-options/tasks/main.yml
|
||||||
- name: SSHD
|
- name: SSHD
|
||||||
include_role:
|
include_role:
|
||||||
|
@ -91,6 +82,7 @@
|
||||||
name: openvpn
|
name: openvpn
|
||||||
when: openvpn_install
|
when: openvpn_install
|
||||||
|
|
||||||
|
|
||||||
# Debian 10 "Buster" is apparently enabling AppArmor in 2019:
|
# Debian 10 "Buster" is apparently enabling AppArmor in 2019:
|
||||||
# https://wiki.debian.org/AppArmor/Progress
|
# https://wiki.debian.org/AppArmor/Progress
|
||||||
# https://wiki.debian.org/AppArmor/HowToUse
|
# https://wiki.debian.org/AppArmor/HowToUse
|
||||||
|
@ -116,6 +108,7 @@
|
||||||
# command: setenforce Permissive
|
# command: setenforce Permissive
|
||||||
# when: not is_debuntu and selinux_disabled is defined and selinux_disabled.changed
|
# when: not is_debuntu and selinux_disabled is defined and selinux_disabled.changed
|
||||||
|
|
||||||
|
|
||||||
## DISCOVER PLATFORMS ######
|
## DISCOVER PLATFORMS ######
|
||||||
# Put conditional actions for hardware platforms here
|
# Put conditional actions for hardware platforms here
|
||||||
- include_tasks: raspberry_pi.yml
|
- include_tasks: raspberry_pi.yml
|
||||||
|
@ -133,6 +126,7 @@
|
||||||
timeout: "{{ download_timeout }}"
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available and usb_NUC6.stdout|int > 0
|
when: internet_available and usb_NUC6.stdout|int > 0
|
||||||
|
|
||||||
|
|
||||||
# this script can be sourced to get IIAB location
|
# this script can be sourced to get IIAB location
|
||||||
- name: Recording STAGE 1 HAS COMPLETED ============================
|
- name: Recording STAGE 1 HAS COMPLETED ============================
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in a new issue