mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #2447 from holta/moodle-3.9.x
Moodle 3.9.x LTS for IIAB 7.2 (installs libapache2-mod-php{{ php_version }} within httpd/tasks/install.yml for now)
This commit is contained in:
commit
e76367014e
4 changed files with 34 additions and 32 deletions
|
@ -7,11 +7,12 @@
|
||||||
include_role:
|
include_role:
|
||||||
name: httpd
|
name: httpd
|
||||||
|
|
||||||
# 2020-05-21: Required now that mysql/tasks/install.yml installs
|
# 2020-06-15: roles/httpd/tasks/install.yml now takes care of this.
|
||||||
# "php{{ php_version }}-common" rather than the full "php{{ php_version }}"
|
# # 2020-05-21: Required now that mysql/tasks/install.yml installs
|
||||||
- name: "Install package: libapache2-mod-php{{ php_version }}"
|
# # "php{{ php_version }}-common" rather than the full "php{{ php_version }}"
|
||||||
package:
|
# - name: "Install package: libapache2-mod-php{{ php_version }}"
|
||||||
name: "libapache2-mod-php{{ php_version }}"
|
# package:
|
||||||
|
# name: "libapache2-mod-php{{ php_version }}"
|
||||||
|
|
||||||
# Assume (enforce?) MySQL is running
|
# Assume (enforce?) MySQL is running
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,23 +1,25 @@
|
||||||
- name: 'Install 3 packages: apache2, php{{ php_version }}, php{{ php_version }}-curl (debian)'
|
- name: 'Install 4 packages: apache2, libapache2-mod-php{{ php_version }}, php{{ php_version }}, php{{ php_version }}-curl'
|
||||||
package:
|
package:
|
||||||
#name: [u'apache2', u'php{{ php_version }}', u'php{{ php_version }}-curl'] # FAILS ('u' for Unicode strings)
|
#name: [u'apache2', u'php{{ php_version }}', u'php{{ php_version }}-curl'] # FAILS ('u' for Unicode strings)
|
||||||
#name: ['apache2', 'php{{ php_version }}', 'php{{ php_version }}-curl'] # WORKS?
|
#name: ['apache2', 'php{{ php_version }}', 'php{{ php_version }}-curl'] # WORKS?
|
||||||
name:
|
name:
|
||||||
- "{{ apache_service }}" # apache2 on Debuntu
|
- "{{ apache_service }}" # apache2 on Debuntu
|
||||||
|
- "libapache2-mod-php{{ php_version }}" # 2020-06-15: Required (e.g. for Elgg, Moodle & possibly others) now that mysql/tasks/install.yml installs "php{{ php_version }}-common" rather than the full "php{{ php_version }}"
|
||||||
- "php{{ php_version }}"
|
- "php{{ php_version }}"
|
||||||
- "php{{ php_version }}-curl"
|
- "php{{ php_version }}-curl"
|
||||||
state: present
|
state: present
|
||||||
when: is_debian | bool
|
when: is_debuntu | bool
|
||||||
|
# when: is_debian | bool
|
||||||
|
|
||||||
- name: 'Install 2 packages: apache2, php (ubuntu)'
|
# - name: 'Install 2 packages: apache2, php (ubuntu)'
|
||||||
package:
|
# package:
|
||||||
#name: [u'apache2', u'php'] # FAILS ('u' for Unicode strings)
|
# #name: [u'apache2', u'php'] # FAILS ('u' for Unicode strings)
|
||||||
#name: ['apache2', 'php'] # WORKS
|
# #name: ['apache2', 'php'] # WORKS
|
||||||
name:
|
# name:
|
||||||
- "{{ apache_service }}" # apache2 on Debuntu
|
# - "{{ apache_service }}" # apache2 on Debuntu
|
||||||
- php
|
# - php
|
||||||
state: present
|
# state: present
|
||||||
when: is_ubuntu | bool
|
# when: is_ubuntu | bool
|
||||||
|
|
||||||
# 2019-05-30: It's interesting that http://box.lan/admin and everything seems
|
# 2019-05-30: It's interesting that http://box.lan/admin and everything seems
|
||||||
# to work even without php{{ php_version }}-sqlite3 as confirmed on Ubuntu
|
# to work even without php{{ php_version }}-sqlite3 as confirmed on Ubuntu
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
|
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
|
||||||
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
|
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
|
||||||
|
|
||||||
moodle_version: 38
|
moodle_version: 39
|
||||||
#moodle_repo_url: "https://github.com/moodle/moodle.git"
|
#moodle_repo_url: "https://github.com/moodle/moodle.git"
|
||||||
moodle_repo_url: "git://git.moodle.org/moodle.git"
|
moodle_repo_url: "git://git.moodle.org/moodle.git"
|
||||||
moodle_base: "{{ iiab_base }}/moodle" # /opt/iiab
|
moodle_base: "{{ iiab_base }}/moodle" # /opt/iiab
|
||||||
|
|
|
@ -18,31 +18,30 @@
|
||||||
name: postgresql
|
name: postgresql
|
||||||
|
|
||||||
|
|
||||||
- name: "Install packages: python-psycopg2, php-pgsql (OS's other than debuntu)"
|
# - name: "Install packages: python-psycopg2, php-pgsql (OS's other than debuntu)"
|
||||||
package:
|
# package:
|
||||||
name:
|
# name:
|
||||||
- python-psycopg2
|
# - python-psycopg2
|
||||||
- php-pgsql
|
# - php-pgsql
|
||||||
state: present
|
# state: present
|
||||||
when: not is_debuntu
|
# when: not is_debuntu
|
||||||
|
|
||||||
- name: Install 4 php packages (debuntu)
|
- name: Install 4 php packages (debuntu)
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- php{{ php_version }}-pgsql
|
- php{{ php_version }}-pgsql
|
||||||
- php{{ php_version }}-curl
|
- php{{ php_version }}-curl
|
||||||
#- php{{ php_version }}-zip
|
- php{{ php_version }}-zip
|
||||||
- php{{ php_version }}-gd
|
- php{{ php_version }}-gd
|
||||||
#- php{{ php_version }}-mbstring
|
- php{{ php_version }}-mbstring # 2020-06-15: Now required by Moodle 3.9+
|
||||||
# mbstring is now included in php-cli
|
- php{{ php_version }}-cli # 2020-06-15: In the past this included (above) mbstring? However this is not true on Ubuntu Server 20.04 LTS.
|
||||||
- php{{ php_version }}-cli
|
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu | bool
|
when: is_debuntu | bool
|
||||||
|
|
||||||
- name: "Install package: php{{ php_version }}-zip (Ubuntu or Debian 9+)"
|
# - name: "Install package: php{{ php_version }}-zip (Ubuntu or Debian 9+)"
|
||||||
package:
|
# package:
|
||||||
name: "php{{ php_version }}-zip"
|
# name: "php{{ php_version }}-zip"
|
||||||
when: is_ubuntu or (is_debian and not is_debian_8)
|
# when: is_ubuntu or (is_debian and not is_debian_8)
|
||||||
|
|
||||||
# - name: "Install package: php-pclzip (debian-8)"
|
# - name: "Install package: php-pclzip (debian-8)"
|
||||||
# package:
|
# package:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue