mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Merge pull request #3453 from holta/php-tz
Store actual System TZ (not Ansible's ambiguous TZ abbreviations) into fpm/php.ini & cli/php.ini — for Matomo etc
This commit is contained in:
		
						commit
						ef71e4f6d9
					
				
					 14 changed files with 76 additions and 61 deletions
				
			
		| 
						 | 
					@ -54,8 +54,9 @@
 | 
				
			||||||
  include_tasks: validate_vars.yml
 | 
					  include_tasks: validate_vars.yml
 | 
				
			||||||
  when: not (rpi_model | regex_search('\\bW\\b'))    # Ansible require double backslashes, e.g. with \b "word boundary" anchors: https://www.regular-expressions.info/wordboundaries.html https://stackoverflow.com/questions/56869119/ansible-regular-expression-to-match-a-string-and-extract-the-line/56869801#56869801
 | 
					  when: not (rpi_model | regex_search('\\bW\\b'))    # Ansible require double backslashes, e.g. with \b "word boundary" anchors: https://www.regular-expressions.info/wordboundaries.html https://stackoverflow.com/questions/56869119/ansible-regular-expression-to-match-a-string-and-extract-the-line/56869801#56869801
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Time Zone / TZ: Set symlink /etc/localtime to UTC if it doesn't exist?"
 | 
					# 2022-12-30: Functionality moved to www_options/tasks/php-settings.yml
 | 
				
			||||||
  include_tasks: tz.yml
 | 
					# - name: "Time Zone / TZ: Set symlink /etc/localtime to UTC if it doesn't exist?"
 | 
				
			||||||
 | 
					#   include_tasks: tz.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Set hostname / domain (etc) in various places
 | 
					- name: Set hostname / domain (etc) in various places
 | 
				
			||||||
  include_tasks: hostname.yml
 | 
					  include_tasks: hostname.yml
 | 
				
			||||||
| 
						 | 
					@ -103,10 +104,10 @@
 | 
				
			||||||
      value: "{{ php_version }}"
 | 
					      value: "{{ php_version }}"
 | 
				
			||||||
    - option: first_run
 | 
					    - option: first_run
 | 
				
			||||||
      value: "{{ first_run }}"
 | 
					      value: "{{ first_run }}"
 | 
				
			||||||
    - option: local_tz    # e.g. 'EDT' (summer) or 'EST' (winter) after Ansible interprets symlink /etc/localtime -- or 'UTC' if /etc/localtime doesn't exist
 | 
					    # - option: local_tz    # e.g. 'EDT' (summer) or 'EST' (winter) after Ansible interprets symlink /etc/localtime -- or 'UTC' if /etc/localtime doesn't exist
 | 
				
			||||||
      value: "{{ local_tz }}"
 | 
					    #   value: "{{ local_tz }}"
 | 
				
			||||||
    - option: etc_localtime.stdout    # e.g. 'America/New_York' direct from symlink /etc/localtime -- or '' if /etc/localtime doesn't exist
 | 
					    # - option: etc_localtime.stdout    # e.g. 'America/New_York' direct from symlink /etc/localtime -- or '' if /etc/localtime doesn't exist
 | 
				
			||||||
      value: "{{ etc_localtime.stdout }}"
 | 
					    #   value: "{{ etc_localtime.stdout }}"
 | 
				
			||||||
    - option: FQDN_changed
 | 
					    - option: FQDN_changed
 | 
				
			||||||
      value: "{{ FQDN_changed }}"
 | 
					      value: "{{ FQDN_changed }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,20 +1,4 @@
 | 
				
			||||||
# 2022-12-30: FYI ansible_date_time.tz provides TZ ABBREVIATIONS (equivalent
 | 
					# 2022-12-30: Functionality moved to www_options/tasks/php-settings.yml
 | 
				
			||||||
# to 'date +%Z' output) which leads to serious ambiguity -- and not just (A)
 | 
					 | 
				
			||||||
# seasonal EST/EDT ambiguities, or (B) floods of geographic synonyms for the
 | 
					 | 
				
			||||||
# very same time zone!  More Seriously: (C) both commands above output "IST"
 | 
					 | 
				
			||||||
# for both Israel Standard Time (+0200) AND India Standard Time (+0530).  Etc!
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# While Ansible provides 2 other vars that (slightly) help disambiguate
 | 
					 | 
				
			||||||
# (ansible_date_time.tz_dst and ansible_date_time.tz_offset), there's a far
 | 
					 | 
				
			||||||
# better way -- which is to read the System TZ directly from Linux:
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# timedatectl show -p "Timezone" --value
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# This takes care of essentially everything (e.g. output "America/New_York")
 | 
					 | 
				
			||||||
# by checking (1) symlink /etc/localtime then (2) text file /etc/timezone
 | 
					 | 
				
			||||||
# then (3) if neither exist, "UTC" is declated (correctly!)  One drawback:
 | 
					 | 
				
			||||||
# timedatectl if not easily usable within chroot environments.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "'local_tz: {{ local_tz }}' was set by ansible_date_time.tz in /opt/iiab/iiab/vars/default_vars.yml -- e.g. if Ansible finds symlink /etc/localtime -> ../usr/share/zoneinfo/America/New_York -- it will simplify that to 'EDT' (in the summer) or 'EST' (in the winter)"
 | 
					- name: "'local_tz: {{ local_tz }}' was set by ansible_date_time.tz in /opt/iiab/iiab/vars/default_vars.yml -- e.g. if Ansible finds symlink /etc/localtime -> ../usr/share/zoneinfo/America/New_York -- it will simplify that to 'EDT' (in the summer) or 'EST' (in the winter)"
 | 
				
			||||||
  command: echo
 | 
					  command: echo
 | 
				
			||||||
| 
						 | 
					@ -23,9 +23,9 @@
 | 
				
			||||||
      - php{{ php_version }}-xml
 | 
					      - php{{ php_version }}-xml
 | 
				
			||||||
      - php{{ php_version }}-mbstring
 | 
					      - php{{ php_version }}-mbstring
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: False' by default"
 | 
					- name: "Run roles/www_options/tasks/php-settings.yml with 'nginx_high_php_limits: False' by default"
 | 
				
			||||||
  include_tasks: roles/www_options/tasks/set-php-limits.yml
 | 
					  include_tasks: roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
  when: set_php_limits_done is undefined
 | 
					  when: php_settings_done is undefined
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Start MariaDB
 | 
					- name: Start MariaDB
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -44,9 +44,9 @@
 | 
				
			||||||
      - php{{ php_version }}-zip         # 2021-06-27: Likewise installed in nextcloud/tasks/install.yml, pbx/tasks/freepbx_dependencies.yml, wordpress/tasks/install.yml
 | 
					      - php{{ php_version }}-zip         # 2021-06-27: Likewise installed in nextcloud/tasks/install.yml, pbx/tasks/freepbx_dependencies.yml, wordpress/tasks/install.yml
 | 
				
			||||||
    state: present
 | 
					    state: present
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: True' by default"
 | 
					- name: "Run roles/www_options/tasks/php-settings.yml with 'nginx_high_php_limits: True' by default"
 | 
				
			||||||
  include_tasks: roles/www_options/tasks/set-php-limits.yml
 | 
					  include_tasks: roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
  when: set_php_limits_done is undefined
 | 
					  when: php_settings_done is undefined
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "MOODLE PRE-RELEASE TESTING: Download (clone) {{ moodle_repo_url }} branch 'master' to {{ moodle_base }} (~389 MB initially, ~416 MB later) if OS PHP {{ php_version }} >= 8.2"
 | 
					- name: "MOODLE PRE-RELEASE TESTING: Download (clone) {{ moodle_repo_url }} branch 'master' to {{ moodle_base }} (~389 MB initially, ~416 MB later) if OS PHP {{ php_version }} >= 8.2"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -86,9 +86,9 @@
 | 
				
			||||||
#    state: present
 | 
					#    state: present
 | 
				
			||||||
#  when: php_version is version('8.0', '<')
 | 
					#  when: php_version is version('8.0', '<')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: False' by default"
 | 
					- name: "Run roles/www_options/tasks/php-settings.yml with 'nginx_high_php_limits: False' by default"
 | 
				
			||||||
  include_tasks: roles/www_options/tasks/set-php-limits.yml
 | 
					  include_tasks: roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
  when: set_php_limits_done is undefined
 | 
					  when: php_settings_done is undefined
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Create dir {{ nextcloud_root_dir }} (by default 755 dirs & 644 files)
 | 
					- name: Create dir {{ nextcloud_root_dir }} (by default 755 dirs & 644 files)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -62,9 +62,9 @@
 | 
				
			||||||
#     state: present
 | 
					#     state: present
 | 
				
			||||||
#   when: php_version is version('8.0', '<')
 | 
					#   when: php_version is version('8.0', '<')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: False' by default"
 | 
					- name: "Run roles/www_options/tasks/php-settings.yml with 'nginx_high_php_limits: False' by default"
 | 
				
			||||||
  include_tasks: roles/www_options/tasks/set-php-limits.yml
 | 
					  include_tasks: roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
  when: set_php_limits_done is undefined
 | 
					  when: php_settings_done is undefined
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: FreePBX - Install and configure Apache - if pbx_use_apache
 | 
					- name: FreePBX - Install and configure Apache - if pbx_use_apache
 | 
				
			||||||
  include_tasks: apache.yml
 | 
					  include_tasks: apache.yml
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -39,9 +39,9 @@
 | 
				
			||||||
#    state: present
 | 
					#    state: present
 | 
				
			||||||
#  when: php_version is version('8.0', '<')
 | 
					#  when: php_version is version('8.0', '<')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Run roles/www_options/tasks/set-php-limits.yml with 'nginx_high_php_limits: False' by default"
 | 
					- name: "Run roles/www_options/tasks/php-settings.yml with 'nginx_high_php_limits: False' by default"
 | 
				
			||||||
  include_tasks: roles/www_options/tasks/set-php-limits.yml
 | 
					  include_tasks: roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
  when: set_php_limits_done is undefined
 | 
					  when: php_settings_done is undefined
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Delete {{ downloads_dir }}/wordpress.tar.gz if it exists
 | 
					- name: Delete {{ downloads_dir }}/wordpress.tar.gz if it exists
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -51,11 +51,11 @@
 | 
				
			||||||
  when: lxde_pi_autostart_present.stat.exists and chromium_present.stat.exists
 | 
					  when: lxde_pi_autostart_present.stat.exists and chromium_present.stat.exists
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 2022-12-29: set-php-limits.yml is ALSO attempted (on demand) by every
 | 
					# 2022-12-29: php-settings.yml is ALSO attempted (on demand) by every
 | 
				
			||||||
# <ROLE>/tasks/install.yml that needs it (Matomo, Moodle, Nextcloud, PBX,
 | 
					# <ROLE>/tasks/install.yml that needs it (Matomo, Moodle, Nextcloud, PBX,
 | 
				
			||||||
# WordPress) so './runrole <ROLE>' and similar are fully self-sufficient!
 | 
					# WordPress) so './runrole <ROLE>' and similar are fully self-sufficient!
 | 
				
			||||||
- name: "Run set-php-limits.yml -- allows post-install toggling of nginx_high_php_limits in /etc/iiab/local_vars.yml -- if you run './runrole www_options'"
 | 
					- name: "Run php-settings.yml -- allows post-install toggling of nginx_high_php_limits in /etc/iiab/local_vars.yml -- if you run './runrole www_options'"
 | 
				
			||||||
  include_tasks: set-php-limits.yml
 | 
					  include_tasks: php-settings.yml
 | 
				
			||||||
  when: matomo_install or moodle_install or nextcloud_install or pbx_install or wordpress_install
 | 
					  when: matomo_install or moodle_install or nextcloud_install or pbx_install or wordpress_install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
# 2022-12-29: This file (set-php-limits.yml) is ALSO invoked on demand, by:
 | 
					# 2022-12-29: This file (php-settings.yml) is ALSO invoked on demand, by:
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# roles/matomo/tasks/install.yml
 | 
					# roles/matomo/tasks/install.yml
 | 
				
			||||||
# roles/moodle/tasks/install.yml
 | 
					# roles/moodle/tasks/install.yml
 | 
				
			||||||
| 
						 | 
					@ -6,11 +6,37 @@
 | 
				
			||||||
# roles/pbx/tasks/freepbx.yml
 | 
					# roles/pbx/tasks/freepbx.yml
 | 
				
			||||||
# roles/wordpress/tasks/install.yml
 | 
					# roles/wordpress/tasks/install.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Ansible's ini_file would normally be best, to tweak .ini files:
 | 
					
 | 
				
			||||||
# https://docs.ansible.com/ansible/latest/collections/community/general/ini_file_module.html
 | 
					# 2022-12-30: FYI ansible_date_time.tz provides TZ ABBREVIATIONS (equivalent
 | 
				
			||||||
 | 
					# to 'date +%Z' output) which leads to serious ambiguity -- and not just (A)
 | 
				
			||||||
 | 
					# seasonal EST/EDT ambiguities, or (B) floods of geographic synonyms for the
 | 
				
			||||||
 | 
					# very same time zone!  More Seriously: (C) both commands above output "IST"
 | 
				
			||||||
 | 
					# for both Israel Standard Time (+0200) AND India Standard Time (+0530).  Etc!
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# But in this case, explanatory comments (inserted by lineinfile below) offer
 | 
					# While Ansible provides 2 other vars that (slightly) help disambiguate
 | 
				
			||||||
# important context to implementers modifying both php.ini files after the fact.
 | 
					# (ansible_date_time.tz_dst and ansible_date_time.tz_offset), there's a far
 | 
				
			||||||
 | 
					# better way -- which is to read the System TZ directly from Linux:
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# timedatectl show -p Timezone --value
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# This takes care of essentially everything (e.g. output "America/New_York")
 | 
				
			||||||
 | 
					# by checking (1) symlink /etc/localtime then (2) text file /etc/timezone if
 | 
				
			||||||
 | 
					# nec, then (3) if neither exist, "UTC" is declated (correctly!)  Potential
 | 
				
			||||||
 | 
					# drawback: timedatectl is not easily usable within chroot environments.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Extract Time Zone from symlink /etc/localtime &/or text file /etc/timezone (or lack thereof!)
 | 
				
			||||||
 | 
					  command: timedatectl show -p "Timezone" --value
 | 
				
			||||||
 | 
					  register: tz_cli
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Store 'date.timezone = {{ tz_cli.stdout }}' (from above) in /etc/php/{{ php_version }}/fpm/php.ini and /etc/php/{{ php_version }}/cli/php.ini
 | 
				
			||||||
 | 
					  ini_file:
 | 
				
			||||||
 | 
					    path: "{{ item }}"
 | 
				
			||||||
 | 
					    section: Date
 | 
				
			||||||
 | 
					    option: date.timezone
 | 
				
			||||||
 | 
					    value: "{{ tz_cli.stdout }}"    # e.g. America/New_York or UTC
 | 
				
			||||||
 | 
					  with_items:
 | 
				
			||||||
 | 
					    - /etc/php/{{ php_version }}/fpm/php.ini
 | 
				
			||||||
 | 
					    - /etc/php/{{ php_version }}/cli/php.ini
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# WARNING: 'nginx_high_php_limits: True' (especially!) might cause excess use of
 | 
					# WARNING: 'nginx_high_php_limits: True' (especially!) might cause excess use of
 | 
				
			||||||
| 
						 | 
					@ -84,14 +110,21 @@
 | 
				
			||||||
  when: nginx_high_php_limits or moodle_install
 | 
					  when: nginx_high_php_limits or moodle_install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# To tweak .ini files, Ansible's ini_file is normally better than lineinfile:
 | 
				
			||||||
 | 
					# https://docs.ansible.com/ansible/latest/collections/community/general/ini_file_module.html
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# But for the 6 * 4 above, explanatory comments (inserted by lineinfile) offer
 | 
				
			||||||
 | 
					# important context to implementers modifying both php.ini files after the fact.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Restart 'php{{ php_version }}-fpm' systemd service
 | 
					- name: Restart 'php{{ php_version }}-fpm' systemd service
 | 
				
			||||||
  systemd:
 | 
					  systemd:
 | 
				
			||||||
    name: php{{ php_version }}-fpm
 | 
					    name: php{{ php_version }}-fpm
 | 
				
			||||||
    state: restarted
 | 
					    state: restarted
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: "Set 'set_php_limits_done: True' so set-php-limits.yml runs just once (per Ansible run)"
 | 
					- name: "Set 'php_settings_done: True' so php-settings.yml runs just once (per Ansible run)"
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
    set_php_limits_done: True
 | 
					    php_settings_done: True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# - debug:
 | 
					# - debug:
 | 
				
			||||||
| 
						 | 
					@ -72,9 +72,6 @@ admin_console_group: iiab-admin    # This group & sudo log in to Admin Console.
 | 
				
			||||||
# Obtain a password hash - OLD WAY:
 | 
					# Obtain a password hash - OLD WAY:
 | 
				
			||||||
#    python -c 'import crypt; print crypt.crypt("<plaintext>", "$6$<salt>")'
 | 
					#    python -c 'import crypt; print crypt.crypt("<plaintext>", "$6$<salt>")'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Time Zone (php used to need timezone set).  SEE: roles/0-init/tasks/tz.yml
 | 
					 | 
				
			||||||
local_tz: "{{ ansible_date_time.tz }}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Set these to False if you do not want to install/enable IIAB Admin Console
 | 
					# Set these to False if you do not want to install/enable IIAB Admin Console
 | 
				
			||||||
admin_console_install: True
 | 
					admin_console_install: True
 | 
				
			||||||
admin_console_enabled: True
 | 
					admin_console_enabled: True
 | 
				
			||||||
| 
						 | 
					@ -346,7 +343,7 @@ nginx_high_php_limits: False
 | 
				
			||||||
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
 | 
					# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
 | 
				
			||||||
# roles/www_options & roles/moodle FORCE high limits if 'moodle_install: True'
 | 
					# roles/www_options & roles/moodle FORCE high limits if 'moodle_install: True'
 | 
				
			||||||
# REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS...
 | 
					# REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS...
 | 
				
			||||||
# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/set-php-limits.yml
 | 
					# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
# ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php/<VERSION>/*/php.ini
 | 
					# ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php/<VERSION>/*/php.ini
 | 
				
			||||||
# ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf
 | 
					# ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -505,7 +502,7 @@ postgresql_enabled: False
 | 
				
			||||||
moodle_install: False
 | 
					moodle_install: False
 | 
				
			||||||
moodle_enabled: False
 | 
					moodle_enabled: False
 | 
				
			||||||
# FYI 'nginx_high_php_limits: True' (explained above) is mandated with Moodle,
 | 
					# FYI 'nginx_high_php_limits: True' (explained above) is mandated with Moodle,
 | 
				
			||||||
# as auto-enacted by roles/www_options/tasks/set-php-limits.yml
 | 
					# as auto-enacted by roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
 | 
					# Regional OSM vector maps use far less disk space than bitmap/raster versions.
 | 
				
			||||||
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
 | 
					# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -214,7 +214,7 @@ nginx_high_php_limits: False
 | 
				
			||||||
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
 | 
					# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
 | 
				
			||||||
# roles/www_options & roles/moodle FORCE high limits if 'moodle_install: True'
 | 
					# roles/www_options & roles/moodle FORCE high limits if 'moodle_install: True'
 | 
				
			||||||
# REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS...
 | 
					# REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS...
 | 
				
			||||||
# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/set-php-limits.yml
 | 
					# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
# ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php/<VERSION>/*/php.ini
 | 
					# ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php/<VERSION>/*/php.ini
 | 
				
			||||||
# ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf
 | 
					# ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -297,7 +297,7 @@ kiwix_enabled: True
 | 
				
			||||||
moodle_install: True
 | 
					moodle_install: True
 | 
				
			||||||
moodle_enabled: True
 | 
					moodle_enabled: True
 | 
				
			||||||
# FYI 'nginx_high_php_limits: True' (explained above) is mandated with Moodle,
 | 
					# FYI 'nginx_high_php_limits: True' (explained above) is mandated with Moodle,
 | 
				
			||||||
# as auto-enacted by roles/www_options/tasks/set-php-limits.yml
 | 
					# as auto-enacted by roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
 | 
					# Regional OSM vector maps use far less disk space than bitmap/raster versions.
 | 
				
			||||||
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
 | 
					# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -214,7 +214,7 @@ nginx_high_php_limits: False
 | 
				
			||||||
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
 | 
					# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
 | 
				
			||||||
# roles/www_options & roles/moodle FORCE high limits if 'moodle_install: True'
 | 
					# roles/www_options & roles/moodle FORCE high limits if 'moodle_install: True'
 | 
				
			||||||
# REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS...
 | 
					# REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS...
 | 
				
			||||||
# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/set-php-limits.yml
 | 
					# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
# ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php/<VERSION>/*/php.ini
 | 
					# ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php/<VERSION>/*/php.ini
 | 
				
			||||||
# ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf
 | 
					# ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -297,7 +297,7 @@ kiwix_enabled: True
 | 
				
			||||||
moodle_install: False
 | 
					moodle_install: False
 | 
				
			||||||
moodle_enabled: False
 | 
					moodle_enabled: False
 | 
				
			||||||
# FYI 'nginx_high_php_limits: True' (explained above) is mandated with Moodle,
 | 
					# FYI 'nginx_high_php_limits: True' (explained above) is mandated with Moodle,
 | 
				
			||||||
# as auto-enacted by roles/www_options/tasks/set-php-limits.yml
 | 
					# as auto-enacted by roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
 | 
					# Regional OSM vector maps use far less disk space than bitmap/raster versions.
 | 
				
			||||||
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
 | 
					# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -214,7 +214,7 @@ nginx_high_php_limits: False
 | 
				
			||||||
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
 | 
					# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
 | 
				
			||||||
# roles/www_options & roles/moodle FORCE high limits if 'moodle_install: True'
 | 
					# roles/www_options & roles/moodle FORCE high limits if 'moodle_install: True'
 | 
				
			||||||
# REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS...
 | 
					# REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS...
 | 
				
			||||||
# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/set-php-limits.yml
 | 
					# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
# ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php/<VERSION>/*/php.ini
 | 
					# ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php/<VERSION>/*/php.ini
 | 
				
			||||||
# ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf
 | 
					# ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -297,7 +297,7 @@ kiwix_enabled: True
 | 
				
			||||||
moodle_install: False
 | 
					moodle_install: False
 | 
				
			||||||
moodle_enabled: False
 | 
					moodle_enabled: False
 | 
				
			||||||
# FYI 'nginx_high_php_limits: True' (explained above) is mandated with Moodle,
 | 
					# FYI 'nginx_high_php_limits: True' (explained above) is mandated with Moodle,
 | 
				
			||||||
# as auto-enacted by roles/www_options/tasks/set-php-limits.yml
 | 
					# as auto-enacted by roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
 | 
					# Regional OSM vector maps use far less disk space than bitmap/raster versions.
 | 
				
			||||||
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
 | 
					# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -214,7 +214,7 @@ nginx_high_php_limits: False
 | 
				
			||||||
# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
 | 
					# WARNING: Enabling this might cause excess use of RAM/disk or other resources!
 | 
				
			||||||
# roles/www_options & roles/moodle FORCE high limits if 'moodle_install: True'
 | 
					# roles/www_options & roles/moodle FORCE high limits if 'moodle_install: True'
 | 
				
			||||||
# REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS...
 | 
					# REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS...
 | 
				
			||||||
# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/set-php-limits.yml
 | 
					# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
# ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php/<VERSION>/*/php.ini
 | 
					# ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php/<VERSION>/*/php.ini
 | 
				
			||||||
# ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf
 | 
					# ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -297,7 +297,7 @@ kiwix_enabled: False
 | 
				
			||||||
moodle_install: False
 | 
					moodle_install: False
 | 
				
			||||||
moodle_enabled: False
 | 
					moodle_enabled: False
 | 
				
			||||||
# FYI 'nginx_high_php_limits: True' (explained above) is mandated with Moodle,
 | 
					# FYI 'nginx_high_php_limits: True' (explained above) is mandated with Moodle,
 | 
				
			||||||
# as auto-enacted by roles/www_options/tasks/set-php-limits.yml
 | 
					# as auto-enacted by roles/www_options/tasks/php-settings.yml
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
 | 
					# Regional OSM vector maps use far less disk space than bitmap/raster versions.
 | 
				
			||||||
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
 | 
					# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue