ansible/ansible — pull request #634 by jpmens (2012-07-20 11:02:12+00:00)
Title: get module (with new module-magic-code!)

Usage: ansible -m get -a "url=http://xxxxxxx dest=fileordirctory"

url= tested with http://, ftp://.
dest= can be a file, in which case that is used, or a directory, in which case basename of URL is used as filename.

Handling of HTTP 304 unmodified works, but I'm not terribly pleased with it: if existing file is, say, empty but newer than URL, I don't overwrite; this certainly needs work.

In fact this whole module probably needs a LOT of work by somebody who really knows Python ... ;-)