from_json не удалось получить возвращаемое значение. Я даже прошел как to_json, но получил ошибку
- name: Call Artifactory API Search
uri:
url: "{{ artifactory_url }}"
timeout: 300
headers:
X-JFrog-Art-Api: "{{ art_api_key }}"
X-Result-Detail: "info"
return_content: yes
validate_certs: no
register: web_response
- name: debug
debug:
var: web_response.content
- name: set var
set_fact:
art_urls: "{{ web_response.content| from_json}}"
Вывод отладки
{
"changed": false,
"_ansible_verbose_always": true,
"_ansible_no_log": false,
"web_response.content": "VARIABLE IS NOT DEFINED!: 'dict object' has no
attribute 'content'"
}