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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content