mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-14 14:26:04 +02:00
- 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
29 lines
828 B
YAML
29 lines
828 B
YAML
- name: Compute average allowed connections per Postgres app (once)
|
|
set_fact:
|
|
POSTGRES_ALLOWED_AVG_CONNECTIONS: "{{ (POSTGRES_MAX_CONNECTIONS | split_postgres_connections(playbook_dir ~ '/roles')) | int }}"
|
|
run_once: true
|
|
|
|
- name: Include dependency 'sys-svc-docker'
|
|
include_role:
|
|
name: sys-svc-docker
|
|
when: run_once_sys_svc_docker is not defined
|
|
|
|
- name: Create Docker network for PostgreSQL
|
|
community.docker.docker_network:
|
|
name: "{{ POSTGRES_NETWORK_NAME }}"
|
|
state: present
|
|
ipam_config:
|
|
- subnet: "{{ POSTGRES_SUBNET }}"
|
|
|
|
- name: "include docker-compose role"
|
|
include_role:
|
|
name: docker-compose
|
|
vars:
|
|
docker_compose_flush_handlers: true
|
|
|
|
- name: install python-psycopg2
|
|
community.general.pacman:
|
|
name: python-psycopg2
|
|
state: present
|
|
|
|
- include_tasks: utils/run_once.yml |