win_get_url has options to download all files from an url with uid and pwd and save it locally? i tried with one file but it needs file extensions and exact file names for destination
I'm not sure what you mean by 'download all files from an url with uid
and pwd', but it sounds like you're trying to mirror a website using
some sort of pattern containing wildcards.
If that is the case, win_get_url won't work as it only handles
(explicitly named) single files.
You'd have to loop through a list of items - provided you know them beforehand.
The concept of file extensions is irrelevant to HTTP so yes you need
full filenames (i.e. including the extension).
If you don't know the filenames beforehand (the wildcard pattern
scenario such as "http://example.com/files/*.txt"\), then you have to
resort to tools like curl and wget.
This in turn relies on the web server serving directory indexes etc.
Dick
right now, i am downloading with exact link of the files and added those to with_items…is there a way to check if the file is new or not…download only if it is new?
Yes. Just use the ‘force: no’ parameter - see http://docs.ansible.com/ansible/win_get_url_module.html