mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-14 06:17:14 +02:00
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
23 lines
692 B
YAML
23 lines
692 B
YAML
- 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 }}"
|