2022-02-06 04:32:54 +08:00
|
|
|
---
|
|
|
|
|
2021-01-10 00:52:02 +08:00
|
|
|
- name: Call matrix-registration list all tokens API
|
2022-07-18 15:39:08 +08:00
|
|
|
ansible.builtin.uri:
|
2021-01-10 00:52:02 +08:00
|
|
|
url: "{{ matrix_registration_api_token_endpoint }}"
|
|
|
|
follow_redirects: none
|
|
|
|
validate_certs: "{{ matrix_registration_api_validate_certs }}"
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
|
|
|
Authorization: "SharedSecret {{ matrix_registration_admin_secret }}"
|
|
|
|
method: GET
|
|
|
|
body_format: json
|
2022-02-06 04:32:54 +08:00
|
|
|
check_mode: false
|
2021-01-10 00:52:02 +08:00
|
|
|
register: matrix_registration_api_result
|
|
|
|
|
2022-07-18 15:39:08 +08:00
|
|
|
- ansible.builtin.set_fact:
|
2021-01-10 00:52:02 +08:00
|
|
|
matrix_registration_api_result_message: >-
|
|
|
|
matrix-registration result:
|
|
|
|
|
|
|
|
{{ matrix_registration_api_result.json | to_nice_json }}
|
2022-02-06 04:32:54 +08:00
|
|
|
check_mode: false
|
2021-01-10 00:52:02 +08:00
|
|
|
|
2022-11-04 22:19:17 +08:00
|
|
|
- name: Inject result message into devture_playbook_runtime_messages_list
|
2022-07-18 15:39:08 +08:00
|
|
|
ansible.builtin.set_fact:
|
2022-11-04 22:19:17 +08:00
|
|
|
devture_playbook_runtime_messages_list: |
|
2021-01-10 00:52:02 +08:00
|
|
|
{{
|
2022-11-04 22:19:17 +08:00
|
|
|
devture_playbook_runtime_messages_list | default([])
|
2021-01-10 00:52:02 +08:00
|
|
|
+
|
|
|
|
[matrix_registration_api_result_message]
|
|
|
|
}}
|
2022-02-06 04:32:54 +08:00
|
|
|
check_mode: false
|