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

Merge pull request #428 from jvonau/master-fix2

Sync from jvonau:master-fix2
This commit is contained in:
A Holt 2020-09-24 17:07:06 -04:00 committed by GitHub
commit dbd1f37e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 19 additions and 80 deletions

View file

@ -96,46 +96,6 @@
gui_port: 443 gui_port: 443
when: adm_cons_force_ssl | bool when: adm_cons_force_ssl | bool
- name: Turn on both vars for MySQL (mandatory in Stage 3!)
set_fact:
mysql_install: True
mysql_enabled: True
# We decided to enable mysql unconditionally.
# when: elgg_enabled or rachel_enabled or owncloud_enabled or phpmyadmin_enabled or wordpress_enabled or iiab_menu_install
- name: "Set python_path: /lib/python2.7/site-packages/ (redhat)"
set_fact:
python_path: /lib/python2.7/site-packages/
when: is_redhat | bool
- name: "Set python_path: /usr/local/lib/python2.7/dist-packages/ (debuntu)"
set_fact:
python_path: /usr/local/lib/python2.7/dist-packages/
when: is_debuntu | bool
# For various reasons the mysql service cannot be enabled on Fedora 20, but
# 'mariadb', which is its real name can. On Fedora 18 we need to use 'mysqld'.
# BETTER TO USE /opt/iiab/iiab/vars/<OS>.yml
#- name: "Set mysql_service: mariadb by default"
# set_fact:
# mysql_service: mariadb
- name: "Set mysql_service: mysqld etc (Fedora 18)"
set_fact:
# BETTER TO USE /opt/iiab/iiab/vars/<OS>.yml
#mysql_service: mysqld
no_NM_reload: True
is_F18: True
when: (ansible_distribution_release == "based on Fedora 18" or ansible_distribution_version == "18") and ansible_distribution == "Fedora"
# BETTER TO USE /opt/iiab/iiab/vars/<OS>.yml
#- name: "Set mysql_service: mysql (debuntu)"
# set_fact:
# mysql_service: mysql
# when: is_debuntu | bool
- name: "Set iiab_fqdn: {{ iiab_hostname }}.{{ iiab_domain }}" - name: "Set iiab_fqdn: {{ iiab_hostname }}.{{ iiab_domain }}"
set_fact: set_fact:
iiab_fqdn: "{{ iiab_hostname }}.{{ iiab_domain }}" iiab_fqdn: "{{ iiab_hostname }}.{{ iiab_domain }}"

View file

@ -42,7 +42,7 @@
# are officially now UNMAINTAINED in default_vars.yml and # are officially now UNMAINTAINED in default_vars.yml and
# https://github.com/iiab/iiab/blob/master/unmaintained-roles.txt etc? # https://github.com/iiab/iiab/blob/master/unmaintained-roles.txt etc?
- name: Set vars_checklist for 53 + 53 + up-to-53 vars ("XYZ_install" + "XYZ_enabled" + "XYZ_installed") to be checked - name: Set vars_checklist for 46 + 46 + up-to-46 vars ("XYZ_install" + "XYZ_enabled" + "XYZ_installed") to be checked
set_fact: set_fact:
vars_checklist: vars_checklist:
- hostapd - hostapd
@ -54,13 +54,8 @@
- wondershaper - wondershaper
- sshd - sshd
- openvpn - openvpn
- admin_console
- nginx
- apache
- mysql
- squid - squid
- dansguardian - dansguardian
- postgresql
- cups - cups
- samba - samba
- usb_lib - usb_lib
@ -76,7 +71,6 @@
- lokole - lokole
- mediawiki - mediawiki
- mosquitto - mosquitto
- nodejs
- nodered - nodered
- nextcloud - nextcloud
- pbx - pbx
@ -85,7 +79,6 @@
- kolibri - kolibri
- kiwix - kiwix
- moodle - moodle
- mongodb
- sugarizer - sugarizer
- osm_vector_maps - osm_vector_maps
- transmission - transmission

View file

@ -5,7 +5,6 @@
- name: dnsmasq (install now, configure LATER in 'network', after Stage 9) - name: dnsmasq (install now, configure LATER in 'network', after Stage 9)
include_tasks: roles/network/tasks/dnsmasq.yml include_tasks: roles/network/tasks/dnsmasq.yml
#when: dnsmasq_install | bool
- name: Install uuid-runtime package (debuntu) - name: Install uuid-runtime package (debuntu)
package: package:
@ -78,12 +77,10 @@
- name: SSHD - name: SSHD
include_role: include_role:
name: sshd name: sshd
#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
#when: iiab_admin_install | bool # Flag might be created in future?
- name: OPENVPN - name: OPENVPN
include_role: include_role:

View file

@ -6,7 +6,6 @@
- name: MYSQL - name: MYSQL
include_role: include_role:
name: mysql name: mysql
when: mysql_install | bool
# 2020-05-21: Apache role 'httpd' is installed as nec by any of these 7 roles: # 2020-05-21: Apache role 'httpd' is installed as nec by any of these 7 roles:
# #
@ -22,7 +21,6 @@
- name: NGINX - name: NGINX
include_role: include_role:
name: nginx name: nginx
when: nginx_install | bool
- name: WWW_BASE (WWW_OPTIONS should be installed later) - name: WWW_BASE (WWW_OPTIONS should be installed later)
include_role: include_role:

View file

@ -16,7 +16,10 @@
- name: Install pylibs (IIAB's python libs) - 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: SSHD
include_role:
name: sshd
- name: Install named / BIND - name: Install named / BIND
include_tasks: roles/network/tasks/named.yml include_tasks: roles/network/tasks/named.yml
@ -57,7 +60,6 @@
- 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 # Flag might be created in future?
- name: Recording STAGE 4 HAS COMPLETED ================== - name: Recording STAGE 4 HAS COMPLETED ==================
lineinfile: lineinfile:

View file

@ -208,7 +208,7 @@ wan_try_dhcp_before_static_ip: True # Facilitate field updates w/ cablemodems
# 1-PREP # 1-PREP
# SEE ssh_port var above. # SEE ssh_port var above.
sshd_install: True # 2020-01-21: do not rely on this var for now (might be implemented in future) sshd_install: True
sshd_enabled: True sshd_enabled: True
# roles/iiab-admin runs here # roles/iiab-admin runs here
@ -250,6 +250,7 @@ mysql_enabled: True
# 2019-01-13: IIAB's use of NGINX is still evolving -- please review this # 2019-01-13: IIAB's use of NGINX is still evolving -- please review this
# evolving doc: https://github.com/iiab/iiab/blob/master/roles/nginx/README.md # evolving doc: https://github.com/iiab/iiab/blob/master/roles/nginx/README.md
# 2020-09-21: removed install |bool in stage 3, not optional and has no effect
nginx_install: True nginx_install: True
nginx_enabled: True nginx_enabled: True
nginx_port: 80 nginx_port: 80
@ -271,10 +272,8 @@ apache_allow_sudo: True
# #
# 2020-05-21: apache_install is completely ignored as Apache is installed on # 2020-05-21: apache_install is completely ignored as Apache is installed on
# demand as a dependency -- by CUPS, Elgg, Lokole, Moodle, Node-RED and/or # demand as a dependency -- by CUPS, Elgg, Lokole, Moodle, Node-RED and/or
# phpMyAdmin -- but for now we set fake value 'apache_install: True' so that # phpMyAdmin
# 'apache_installed is defined' input validation works, e.g. in apache_install: False
# 0-init/tasks/validate_vars.yml
apache_install: True
apache_enabled: False apache_enabled: False
# #
# NGINX proxies to Apache for legacy IIAB services, using: # NGINX proxies to Apache for legacy IIAB services, using:
@ -296,11 +295,8 @@ dansguardian_install: False
dansguardian_enabled: False dansguardian_enabled: False
# 2020-02-04: postgresql_install is completely ignored as PostgreSQL is # 2020-02-04: postgresql_install is completely ignored as PostgreSQL is
# installed on demand as a dependency -- by Moodle &/or Pathagar -- but for now # installed on demand as a dependency -- by Moodle &/or Pathagar
# we set fake value 'postgresql_install: True' so that postgresql_install: False
# 'postgresql_installed is defined' input validation works, e.g. in
# 0-init/tasks/validate_vars.yml
postgresql_install: True
postgresql_enabled: False postgresql_enabled: False
# Common UNIX Printing System (CUPS) # Common UNIX Printing System (CUPS)
@ -395,10 +391,7 @@ mosquitto_port: 1883
# 2020-02-04: nodejs_install is completely ignored as Node.js is installed on # 2020-02-04: nodejs_install is completely ignored as Node.js is installed on
# demand as a dependency -- by Node-RED, Sugarizer and/or Internet Archive -- # demand as a dependency -- by Node-RED, Sugarizer and/or Internet Archive --
# but for now we set fake value 'nodejs_install: True' so that nodejs_install: False
# 'nodejs_installed is defined' input validation works, e.g. in
# 0-init/tasks/validate_vars.yml
nodejs_install: True
nodejs_enabled: False nodejs_enabled: False
# Node.js version used by roles/nodejs/tasks/main.yml for 3 roles: # Node.js version used by roles/nodejs/tasks/main.yml for 3 roles:
# nodered (Node-RED), pbx (Asterix, FreePBX) & sugarizer (Sugarizer) # nodered (Node-RED), pbx (Asterix, FreePBX) & sugarizer (Sugarizer)
@ -471,10 +464,8 @@ moodle_enabled: False
# This role was formerly installed by roles/sugarizer/meta/main.yml # This role was formerly installed by roles/sugarizer/meta/main.yml
# #
# 2020-02-04: mongodb_install is completely ignored as MongoDB is installed on # 2020-02-04: mongodb_install is completely ignored as MongoDB is installed on
# demand as a dependency -- by Sugarizer -- but for now we set fake value # demand as a dependency -- by Sugarizer
# 'mongodb_install: True' so that 'mongodb_installed is defined' input mongodb_install: False
# validation works, e.g. in 0-init/tasks/validate_vars.yml
mongodb_install: True
# FYI 'mongodb_enabled: False' works when Sugarizer is disabled. Required by # FYI 'mongodb_enabled: False' works when Sugarizer is disabled. Required by
# mongodb/tasks/enable.yml to shut down the service and log status, but that is # mongodb/tasks/enable.yml to shut down the service and log status, but that is
# misleading as Sugarizer starts mongodb's systemd service on its own, due to # misleading as Sugarizer starts mongodb's systemd service on its own, due to
@ -565,10 +556,8 @@ vnstat_enabled: False
# 9-LOCAL-ADDONS # 9-LOCAL-ADDONS
# 2020-02-04: yarn_install is completely ignored as the Yarn package manager is # 2020-02-04: yarn_install is completely ignored as the Yarn package manager is
# installed on demand as a dependency -- by Internet Archive -- but for now we # installed on demand as a dependency -- by Internet Archive
# set fake value 'yarn_install: True' so that 'yarn_installed is defined' input yarn_install: False
# validation works, e.g. in 0-init/tasks/validate_vars.yml
yarn_install: True
yarn_enabled: False yarn_enabled: False
# Internet Archive Offline / Decentralized Web - create your own offline # Internet Archive Offline / Decentralized Web - create your own offline

View file

@ -99,7 +99,6 @@ named_install: False
named_enabled: False named_enabled: False
# dnsmasq - handles DHCP and DNS # dnsmasq - handles DHCP and DNS
dnsmasq_install: True
dnsmasq_enabled: True dnsmasq_enabled: True
# Enable AFTER installing IIAB! Then run "cd /opt/iiab/iiab; ./iiab-network" # Enable AFTER installing IIAB! Then run "cd /opt/iiab/iiab; ./iiab-network"
@ -169,6 +168,7 @@ apache_allow_sudo: True
# 4-SERVER-OPTIONS # 4-SERVER-OPTIONS
sshd_enabled: True
# DNS prep (dnsmasq, named &/or dhcpd) run here. The full network stage runs # DNS prep (dnsmasq, named &/or dhcpd) run here. The full network stage runs
# after 9-LOCAL-ADDONS (or manually run "cd /opt/iiab/iiab; ./iiab-network") # after 9-LOCAL-ADDONS (or manually run "cd /opt/iiab/iiab; ./iiab-network")

View file

@ -99,7 +99,6 @@ named_install: False
named_enabled: False named_enabled: False
# dnsmasq - handles DHCP and DNS # dnsmasq - handles DHCP and DNS
dnsmasq_install: True
dnsmasq_enabled: True dnsmasq_enabled: True
# Enable AFTER installing IIAB! Then run "cd /opt/iiab/iiab; ./iiab-network" # Enable AFTER installing IIAB! Then run "cd /opt/iiab/iiab; ./iiab-network"
@ -169,6 +168,7 @@ apache_allow_sudo: True
# 4-SERVER-OPTIONS # 4-SERVER-OPTIONS
sshd_enabled: True
# DNS prep (dnsmasq, named &/or dhcpd) run here. The full network stage runs # DNS prep (dnsmasq, named &/or dhcpd) run here. The full network stage runs
# after 9-LOCAL-ADDONS (or manually run "cd /opt/iiab/iiab; ./iiab-network") # after 9-LOCAL-ADDONS (or manually run "cd /opt/iiab/iiab; ./iiab-network")

View file

@ -99,7 +99,6 @@ named_install: False
named_enabled: False named_enabled: False
# dnsmasq - handles DHCP and DNS # dnsmasq - handles DHCP and DNS
dnsmasq_install: True
dnsmasq_enabled: True dnsmasq_enabled: True
# Enable AFTER installing IIAB! Then run "cd /opt/iiab/iiab; ./iiab-network" # Enable AFTER installing IIAB! Then run "cd /opt/iiab/iiab; ./iiab-network"
@ -169,6 +168,7 @@ apache_allow_sudo: True
# 4-SERVER-OPTIONS # 4-SERVER-OPTIONS
sshd_enabled: True
# DNS prep (dnsmasq, named &/or dhcpd) run here. The full network stage runs # DNS prep (dnsmasq, named &/or dhcpd) run here. The full network stage runs
# after 9-LOCAL-ADDONS (or manually run "cd /opt/iiab/iiab; ./iiab-network") # after 9-LOCAL-ADDONS (or manually run "cd /opt/iiab/iiab; ./iiab-network")