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

Merge pull request #407 from iiab/master

sync from iiab:master
This commit is contained in:
A Holt 2020-06-18 14:02:06 -04:00 committed by GitHub
commit a166ccab0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 33 deletions

View file

@ -7,11 +7,12 @@
include_role:
name: httpd
# 2020-05-21: Required now that mysql/tasks/install.yml installs
# "php{{ php_version }}-common" rather than the full "php{{ php_version }}"
- name: "Install package: libapache2-mod-php{{ php_version }}"
package:
name: "libapache2-mod-php{{ php_version }}"
# 2020-06-15: roles/httpd/tasks/install.yml now takes care of this.
# # 2020-05-21: Required now that mysql/tasks/install.yml installs
# # "php{{ php_version }}-common" rather than the full "php{{ php_version }}"
# - name: "Install package: libapache2-mod-php{{ php_version }}"
# package:
# name: "libapache2-mod-php{{ php_version }}"
# Assume (enforce?) MySQL is running
#

View file

@ -9,7 +9,7 @@
# Info needed to install Gitea:
gitea_version: 1.11.6
gitea_version: 1.11.7
iset_suffixes:
i386: 386
x86_64: amd64

View file

@ -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:
#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:
- "{{ 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 }}-curl"
state: present
when: is_debian | bool
when: is_debuntu | bool
# when: is_debian | bool
- name: 'Install 2 packages: apache2, php (ubuntu)'
package:
#name: [u'apache2', u'php'] # FAILS ('u' for Unicode strings)
#name: ['apache2', 'php'] # WORKS
name:
- "{{ apache_service }}" # apache2 on Debuntu
- php
state: present
when: is_ubuntu | bool
# - name: 'Install 2 packages: apache2, php (ubuntu)'
# package:
# #name: [u'apache2', u'php'] # FAILS ('u' for Unicode strings)
# #name: ['apache2', 'php'] # WORKS
# name:
# - "{{ apache_service }}" # apache2 on Debuntu
# - php
# state: present
# when: is_ubuntu | bool
# 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

View file

@ -7,7 +7,7 @@
# 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!
moodle_version: 38
moodle_version: 39
#moodle_repo_url: "https://github.com/moodle/moodle.git"
moodle_repo_url: "git://git.moodle.org/moodle.git"
moodle_base: "{{ iiab_base }}/moodle" # /opt/iiab

View file

@ -18,31 +18,30 @@
name: postgresql
- name: "Install packages: python-psycopg2, php-pgsql (OS's other than debuntu)"
package:
name:
- python-psycopg2
- php-pgsql
state: present
when: not is_debuntu
# - name: "Install packages: python-psycopg2, php-pgsql (OS's other than debuntu)"
# package:
# name:
# - python-psycopg2
# - php-pgsql
# state: present
# when: not is_debuntu
- name: Install 4 php packages (debuntu)
package:
name:
- php{{ php_version }}-pgsql
- php{{ php_version }}-curl
#- php{{ php_version }}-zip
- php{{ php_version }}-zip
- php{{ php_version }}-gd
#- php{{ php_version }}-mbstring
# mbstring is now included in php-cli
- php{{ php_version }}-cli
- php{{ php_version }}-mbstring # 2020-06-15: Now required by Moodle 3.9+
- 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.
state: present
when: is_debuntu | bool
- name: "Install package: php{{ php_version }}-zip (Ubuntu or Debian 9+)"
package:
name: "php{{ php_version }}-zip"
when: is_ubuntu or (is_debian and not is_debian_8)
# - name: "Install package: php{{ php_version }}-zip (Ubuntu or Debian 9+)"
# package:
# name: "php{{ php_version }}-zip"
# when: is_ubuntu or (is_debian and not is_debian_8)
# - name: "Install package: php-pclzip (debian-8)"
# package: