xwiki: install/verify via REST Job API; add 'xwiki_job_id' filter; refactor extension probe; remove invalid /extensions/{id} verify; README wording

Context: fixed 404 on 'Verify OIDC extension is installed' by polling jobstatus and parsing job id via filter plugin.
Conversation: https://chatgpt.com/share/68c435b7-96c0-800f-b7d6-b3fe99b443e0
This commit is contained in:
2025-09-12 17:01:37 +02:00
parent d7d8578b13
commit 2f992983f4
4 changed files with 145 additions and 36 deletions

View File

@@ -0,0 +1,22 @@
- name: "XWIKI | Probe extension {{ ext_id }}"
when: ext_enabled | bool
uri:
url: "{{ XWIKI_REST_XWIKI }}/extensions/{{ ext_id | urlencode }}"
method: GET
user: "{{ XWIKI_SUPERADMIN_USERNAME }}"
password: "{{ XWIKI_SUPERADMIN_PASSWORD }}"
force_basic_auth: true
follow_redirects: none
return_content: no
headers:
Accept: "application/xml"
status_code: [200, 401, 404, 302]
register: _probe
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
changed_when: false
- name: "XWIKI | Save probe result for {{ ext_id }}"
when: ext_enabled | bool
set_fact:
"{{ result_var }}": "{{ _probe }}"
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"