- name: Get id of cluster ansible.builtin.uri: url: https://api.scaleway.com/k8s/v1/regions/fr-par/clusters status_code: 200 return_content: yes method: GET headers: X-Auth-Token: "{{ scw_secret_key }}" register: output - name: Display content GET scaleway debug: msg: "{{ item }}" with_items: "{{ output.content |to_json }}" # | from_json | community.general.json_query('clusters[*]')