FYI
I updated the uri module to retrieve the remote file name first when the initial url gets redirected.
https://github.com/ansible/ansible/pull/2630
I tested a couple of use cases, and all seemed fine in the end, though some more testing might be needed.
Serge