Why does the Ansible URI module fail when the URL contains spaces?

Solution Verified - Updated -

Issue

When using the URI module in a playbook with a URL that contains a space, playbook fails with an error: "URL can't contain control characters" when it was previously working.

Environment

Ansible Engine
Python v2.7.5-86

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In