Uri module reports "URL can't contain control character"

Try URL encoding the URL by changing the space characters to %20?

- name: Get URL
  ansible.builtin.uri:
    url: "https://{{ hostname }}:8443/api/v2/storage-systems?filter=name%20eq%20'http://hostname.example.com'"
3 Likes