mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-18 14:34:24 +02:00
29 lines
901 B
YAML
29 lines
901 B
YAML
---
|
|
- name: "load docker, db and proxy for {{application_id}}"
|
|
include_role:
|
|
name: cmp-db-docker-proxy
|
|
|
|
- name: Wait until the Moodle container is healthy
|
|
shell: docker inspect --format '{% raw %}{{.State.Health.Status}}{% endraw %}' {{ container_name }}
|
|
register: health_check
|
|
until: health_check.stdout.strip() == "healthy"
|
|
retries: 120
|
|
delay: 5
|
|
|
|
- name: "Include ownership settings tasks for moodle"
|
|
include_tasks: ownership.yml
|
|
|
|
- name: "Configure OIDC login for Moodle if enabled"
|
|
include_tasks: oidc.yml
|
|
when: applications | get_app_conf(application_id, 'features.oidc', False)
|
|
|
|
- name: Run Moodle system check
|
|
command: >
|
|
docker exec --user {{ bitnami_user }} {{ container_name }}
|
|
php /opt/bitnami/moodle/admin/cli/checks.php
|
|
register: moodle_checks
|
|
changed_when: false
|
|
failed_when: >
|
|
moodle_checks.rc != 0 or
|
|
"OK: All" not in moodle_checks.stdout
|