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

Cleanup of PHP 7.x & 8.0 dependencies

This commit is contained in:
root 2021-06-27 16:01:53 -04:00
parent 1493005d63
commit 468836d51e
14 changed files with 102 additions and 77 deletions

View file

@ -1,28 +1,26 @@
# Role "www_base" runs here, probably in 3-BASE-SERVER.
# Role "www_options" runs later, likely in 4-SERVER-OPTIONS.
- name: Install 9 PHP packages (run 'php -m' or 'php -i' to verify)
package:
name:
# - php{{ php_version }} # On Ubuntu 20.04 (and prob other OS's) this forces the install of: apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php{{ php_version }} ETC
- php{{ php_version }}-common # 2020-05-21: @jvonau suggests this to avoid Apache that was above. Or its superset php{{ php_version }}-cli if absolutely nec?
- php{{ php_version }}-curl # 2021-06-25: nextcloud/tasks/install.yml & moodle/tasks/main.yml need this!
- php{{ php_version }}-gd # 2021-06-25: nextcloud/tasks/install.yml & moodle/tasks/main.yml need this!
- php{{ php_version }}-imap
- php{{ php_version }}-ldap
- php{{ php_version }}-mysql
- php{{ php_version }}-odbc
- php-pear
# 2021-06-27: Antifragile roles can become less brittle by fully declaring
# their own dependencies (i.e. modularity, separation-of-concerns,
# encapsulation, compartmentalization, scope sanity, etc).
#
#- name: Install 10 PHP packages (run 'php -m' or 'php -i' to verify)
# package:
# name:
# - php{{ php_version }} # On Ubuntu 20.04 (and prob other OS's) this forces the install of: apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php{{ php_version }} ETC
#- php{{ php_version }}-common # 2021-06-27: Experimentally remove. 2020-05-21: @jvonau suggests this to avoid Apache that was above. Or its superset php{{ php_version }}-cli if absolutely nec?
#- php{{ php_version }}-curl # 2021-06-27: Installed by nextcloud/tasks/install.yml & moodle/tasks/main.yml
#- php{{ php_version }}-gd # 2021-06-27: Installed by nextcloud/tasks/install.yml & moodle/tasks/main.yml
#- php{{ php_version }}-imap # 2021-06-27: Experimentally remove
#- php{{ php_version }}-ldap # 2021-06-27: Experimentally remove
#- php{{ php_version }}-mysql # 2021-06-27: Experimentally remove
#- php{{ php_version }}-odbc # 2021-06-27: Experimentally remove
#- php-pear # 2021-06-27: Experimentally remove
# - php{{ php_version }}-sqlite3 # 2020-07-10: Experimentally install this within roles/osm-vector-maps/tasks/install.yml only, as part of OSM fix PR #2464 for #2461.
- php{{ php_version }}-xml # 2021-06-25: nextcloud/tasks/install.yml used to install this (and might still benefit!)
#- php{{ php_version }}-xmlrpc # 2021-06-25: Experimentally moved just below, to figure out if/where IIAB still needs this with PHP 8.0+
state: present
- name: Install php{{ php_version }}-xmlrpc if PHP < 8.0
package:
name: php{{ php_version }}-xmlrpc
state: present
when: php_version is version('8.0', '<')
#- php{{ php_version }}-xml # 2021-06-27: Installed by nextcloud/tasks/install.yml
#- php{{ php_version }}-xmlrpc # 2021-06-27: Experimentally remove
# state: present
- name: Using html.yml
include_tasks: html.yml