Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
873 B

  1. - name: Call matrix-registration list all tokens API
  2. uri:
  3. url: "{{ matrix_registration_api_token_endpoint }}"
  4. follow_redirects: none
  5. validate_certs: "{{ matrix_registration_api_validate_certs }}"
  6. headers:
  7. Content-Type: application/json
  8. Authorization: "SharedSecret {{ matrix_registration_admin_secret }}"
  9. method: GET
  10. body_format: json
  11. check_mode: no
  12. register: matrix_registration_api_result
  13. - set_fact:
  14. matrix_registration_api_result_message: >-
  15. matrix-registration result:
  16. {{ matrix_registration_api_result.json | to_nice_json }}
  17. check_mode: no
  18. - name: Inject result message into matrix_playbook_runtime_results
  19. set_fact:
  20. matrix_playbook_runtime_results: |
  21. {{
  22. matrix_playbook_runtime_results|default([])
  23. +
  24. [matrix_registration_api_result_message]
  25. }}
  26. check_mode: no