32 lines
937 B
YAML
Raw Normal View History

---
2021-01-09 08:52:02 -08:00
- name: Call matrix-registration list all tokens API
ansible.builtin.uri:
2021-01-09 08: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
check_mode: false
2021-01-09 08:52:02 -08:00
register: matrix_registration_api_result
- ansible.builtin.set_fact:
2021-01-09 08:52:02 -08:00
matrix_registration_api_result_message: >-
matrix-registration result:
{{ matrix_registration_api_result.json | to_nice_json }}
check_mode: false
2021-01-09 08:52:02 -08:00
- name: Inject result message into matrix_playbook_runtime_results
ansible.builtin.set_fact:
2021-01-09 08:52:02 -08:00
matrix_playbook_runtime_results: |
{{
2022-07-18 11:22:05 +03:00
matrix_playbook_runtime_results | default([])
2021-01-09 08:52:02 -08:00
+
[matrix_registration_api_result_message]
}}
check_mode: false