mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-14 22:36:05 +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
31 lines
924 B
YAML
31 lines
924 B
YAML
- name: "Load CDN for '{{ domain }}'"
|
|
include_role:
|
|
name: web-svc-cdn
|
|
public: false
|
|
when:
|
|
- application_id != 'web-svc-cdn'
|
|
- run_once_web_svc_cdn is not defined
|
|
|
|
- name: Overwritte CDN handlers with neutral handlers
|
|
ansible.builtin.include_tasks: "{{ [ playbook_dir, 'tasks/utils/load_handlers.yml'] | path_join }}"
|
|
loop:
|
|
- svc-prx-openresty
|
|
- docker-compose
|
|
loop_control:
|
|
label: "{{ item }}"
|
|
vars:
|
|
handler_role_name: "{{ item }}"
|
|
|
|
# ------------------------------------------------------------------
|
|
# Only-once creations (shared root and vendor)
|
|
# ------------------------------------------------------------------
|
|
- name: Ensure shared root and vendor exist (run once)
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: "{{ NGINX.USER }}"
|
|
group: "{{ NGINX.USER }}"
|
|
mode: "0755"
|
|
loop: "{{ CDN_DIRS_GLOBAL }}"
|
|
|
|
- include_tasks: utils/run_once.yml |