mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-14 14:26:04 +02:00
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
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
- name: "Wait until XWiki REST is ready"
|
||||
uri:
|
||||
url: "http://127.0.0.1:{{ XWIKI_HOST_PORT }}/xwiki/rest/"
|
||||
status_code: [200, 401]
|
||||
status_code: [200, 401, 302]
|
||||
return_content: no
|
||||
register: xwiki_rest_up
|
||||
retries: 60
|
||||
@@ -38,7 +38,7 @@
|
||||
user: "{{ XWIKI_ADMIN_USER }}"
|
||||
password: "{{ XWIKI_ADMIN_PASS }}"
|
||||
force_basic_auth: yes
|
||||
status_code: [200,404]
|
||||
status_code: [200, 404, 302]
|
||||
register: xwiki_oidc_ext
|
||||
when: XWIKI_OIDC_ENABLED | bool
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
user: "{{ XWIKI_ADMIN_USER }}"
|
||||
password: "{{ XWIKI_ADMIN_PASS }}"
|
||||
force_basic_auth: yes
|
||||
status_code: [200,404]
|
||||
status_code: [200, 404, 302]
|
||||
register: xwiki_ldap_ext
|
||||
when: XWIKI_LDAP_ENABLED | bool
|
||||
|
||||
@@ -67,4 +67,4 @@
|
||||
- (XWIKI_OIDC_ENABLED | bool and xwiki_oidc_ext.status == 404) or
|
||||
(XWIKI_LDAP_ENABLED | bool and (xwiki_ldap_ext is not skipped) and xwiki_ldap_ext.status == 404)
|
||||
|
||||
- include_tasks: utils/run_once.yml
|
||||
- include_tasks: utils/run_once.yml
|
||||
|
Reference in New Issue
Block a user