mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-17 07:46:05 +02:00
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:
22
roles/web-app-xwiki/tasks/_probe_extension.yml
Normal file
22
roles/web-app-xwiki/tasks/_probe_extension.yml
Normal 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 }}"
|
Reference in New Issue
Block a user