ansible/ansible — pull request #1543 by dagwieers (2012-11-06 22:33:53+00:00)
Title: Don't require thirsty mode for directory destination

There is no need to require thirsty mode when the destination is a directory. We add the basename of the url to the destination directory and proceed with that. If that file exists in non-thirsty mode continue as expected.

I also cleaned up some of the logic that is no longer necessary if we simply rewrite the destination from the very start the way it is expected if the destination is a directory. This simplifies the logic.