Short tip: Ansible - "failed to create temporary content file: 'The read operation timed out'"

While using the Ansible modules get_url and unarchive I recently stumbled upon the following errors:

1failed to create temporary content file: 'The read operation timed out'
2failed to create temporary content file: (-1, 'Unexpected EOF')

After some research it figured out that the urllib3 library (which is used by Ansible for HTTP downloads) was heavily outdated.

1$ rpm -qa|grep -i urllib3
2python-urllib3-1.10.2-5.el7.noarch

Version 1.25.3 was available on PyPi. Updating the library fixed the issue:

1# pip install --upgrade urllib3

Translations: