diff --git a/roles/www_options/tasks/main.yml b/roles/www_options/tasks/main.yml index dc59083f0..59754f749 100644 --- a/roles/www_options/tasks/main.yml +++ b/roles/www_options/tasks/main.yml @@ -51,7 +51,12 @@ when: lxde_pi_autostart_present.stat.exists and chromium_present.stat.exists -# 2022-12-29: set-php-limits.yml run on demand (by roles that need it) +# 2022-12-29: set-php-limits.yml is ALSO attempted (on demand) by every +# /tasks/install.yml that needs it (Matomo, Moodle, Nextcloud, PBX, +# WordPress) so './runrole ' 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'" + include_tasks: set-php-limits.yml + when: matomo_install or moodle_install or nextcloud_install or pbx_install or wordpress_install # 'Is a "Rapid Power Off" button possible for low-electricity environments?' diff --git a/vars/default_vars.yml b/vars/default_vars.yml index 57768b92d..a79ec1e13 100644 --- a/vars/default_vars.yml +++ b/vars/default_vars.yml @@ -346,7 +346,7 @@ nginx_high_php_limits: False # 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' # REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS... -# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/main.yml#L53-L133 +# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/set-php-limits.yml # ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php//*/php.ini # ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf diff --git a/vars/local_vars_large.yml b/vars/local_vars_large.yml index 96a5e27f3..6793fe878 100644 --- a/vars/local_vars_large.yml +++ b/vars/local_vars_large.yml @@ -214,7 +214,7 @@ nginx_high_php_limits: False # 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' # REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS... -# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/main.yml#L53-L133 +# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/set-php-limits.yml # ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php//*/php.ini # ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf diff --git a/vars/local_vars_medium.yml b/vars/local_vars_medium.yml index 086acca50..6cfc82613 100644 --- a/vars/local_vars_medium.yml +++ b/vars/local_vars_medium.yml @@ -214,7 +214,7 @@ nginx_high_php_limits: False # 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' # REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS... -# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/main.yml#L53-L133 +# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/set-php-limits.yml # ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php//*/php.ini # ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf diff --git a/vars/local_vars_small.yml b/vars/local_vars_small.yml index efda0cd4c..e12612962 100644 --- a/vars/local_vars_small.yml +++ b/vars/local_vars_small.yml @@ -214,7 +214,7 @@ nginx_high_php_limits: False # 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' # REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS... -# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/main.yml#L53-L133 +# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/set-php-limits.yml # ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php//*/php.ini # ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf diff --git a/vars/local_vars_unittest.yml b/vars/local_vars_unittest.yml index f96fb415b..8b683f492 100644 --- a/vars/local_vars_unittest.yml +++ b/vars/local_vars_unittest.yml @@ -214,7 +214,7 @@ nginx_high_php_limits: False # 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' # REGARDLESS: AFTER INSTALLING IIAB, PLEASE VERIFY THESE 6 SETTINGS... -# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/main.yml#L53-L133 +# https://github.com/iiab/iiab/blob/master/roles/www_options/tasks/set-php-limits.yml # ...ARE SUITABLE FOR YOUR HARDWARE, as saved in: /etc/php//*/php.ini # ALSO: ADJUST "client_max_body_size 500M;" AS NEC, IN: /etc/nginx/server.conf