mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Solved is_feature_enabled bug and implemented Dockerfile for moodle
This commit is contained in:
@@ -10,9 +10,15 @@
|
||||
domain: "{{ domains[application_id] }}"
|
||||
http_port: "{{ ports.localhost.http[application_id] }}"
|
||||
|
||||
- name: "Transfer Dockerfile to {{ docker_compose.directories.instance }}"
|
||||
copy:
|
||||
src: Dockerfile.j2
|
||||
dest: "{{ docker_compose.directories.instance }}Dockerfile"
|
||||
notify: docker compose project build and setup
|
||||
|
||||
- name: "copy docker-compose.yml and env file"
|
||||
include_tasks: copy-docker-compose-and-env.yml
|
||||
|
||||
- name: "Configure OIDC login for Moodle if enabled"
|
||||
include_tasks: oidc.yml
|
||||
when: applications | is_feature_enabled('oidc',application)
|
||||
when: applications | is_feature_enabled('oidc',application_id)
|
||||
|
@@ -1,13 +1,4 @@
|
||||
---
|
||||
- name: "Ensure OIDC plugin is installed inside container"
|
||||
command: >
|
||||
docker exec {{ container_name }} bash -c '
|
||||
set -e;
|
||||
cd /bitnami/moodle;
|
||||
if [ ! -d "auth/oidc" ]; then
|
||||
git clone https://github.com/microsoft/moodle-auth_oidc.git auth/oidc;
|
||||
fi'
|
||||
|
||||
- name: "Upgrade Moodle to apply OIDC plugin"
|
||||
command: "docker exec {{ container_name }} php admin/cli/upgrade.php --non-interactive"
|
||||
|
||||
|
Reference in New Issue
Block a user