Files
computer-playbook/roles/svc-db-postgres/tasks/main.yml
Kevin Veen-Birkenbach b7a7be4737 Fix XWiki automation bootstrap:
- Accept HTTP 302 (Distribution Wizard redirects) in REST readiness and extension checks
- Treat 302 as missing admin user during bootstrap
- Move superadmin password to xwiki.cfg (correct location)
- Disable automatic Distribution Wizard start in xwiki.properties
- Standardize run_once includes for postgres, cdn, and xwiki roles

See: https://chatgpt.com/share/68c3a67b-80b4-800f-8a90-ebdcd4abb86c
2025-09-12 06:50:24 +02:00

15 lines
482 B
YAML

- block:
- include_tasks: 01_core.yml
vars:
# Force the flush of the pg handler on the first run
flush_handlers: true
when: run_once_svc_db_postgres is not defined
- include_tasks: "{{ playbook_dir }}/tasks/utils/load_handlers.yml"
# Necessary because docker handlers are overwritten by condition
vars:
handler_role_name: "docker-compose"
- name: "Initialize database for '{{ database_name }}'"
include_tasks: 02_init.yml
when: POSTGRES_INIT | bool