Daniel Hokka Zakrisson
1dadd70d9f
Remove choices=BOOLEANS as it is no longer needed
12 years ago
Daniel Hokka Zakrisson
0150f18a3b
Use argument type checking to convert to boolean
12 years ago
Michael DeHaan
676b7030a2
Merge pull request #2146 from dagwieers/thirsty-force
...
Add force= and make thirsty= an alias for backward compatibility
12 years ago
Michael DeHaan
0d671d3bcd
Show how to use the more simplified way of including EXAMPLES in docs. We should update
...
all module docs to do this.
12 years ago
Dag Wieers
fbce4c28ba
Add force= and make thirsty= an alias for backward compatibility
12 years ago
Daniel Hokka Zakrisson
46d0ba335c
Fix get_url to work on Python 2.4
12 years ago
Daniel Hokka Zakrisson
a3bde39e63
Remove last remnants of daisychaining
12 years ago
Michael DeHaan
7c621a987b
fix documentation formatting for get_url
12 years ago
igor
75bf2f7a37
minor doc changes
12 years ago
igor
13bb88ef97
add support for user:password syntax in urls to get_url
12 years ago
Jan-Piet Mens
d184f72aa9
DOCUMENTATION strings
12 years ago
Michael DeHaan
6f6559670f
chmod -x for all module files in source checkout
12 years ago
Dag Wieers
3b7feb8980
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.
12 years ago
Jan-Piet Mens
d069c57974
Reformat code: examples consistently
...
- added terse syntax to modules.rst
- added description of special variables to template module
12 years ago
Michael DeHaan
eaaa9e447b
Various performance streamlining and making the file features usable in all modules without daisy chaining.
12 years ago
Michael DeHaan
d404737543
various small doc tweaks
12 years ago
Jan-Piet Mens
a790c399f4
Added attribution to all module DOCUMENTATION strings
12 years ago
Michael DeHaan
550fa7ec27
Various fixes for the module documentation auto-generator
12 years ago
Michael DeHaan
5256ea7e75
Various tweaking to get the module formatter to work for 'make docs' in the docs project. Likely the templates for other module formatting types will have to change
...
by the time I'm done.
12 years ago
Jan-Piet Mens
af1f925eea
Tweak DOCUMENTATION YAML as per latest 991
12 years ago
Jan-Piet Mens
952a82cca0
First attempt at standardizing DOCUMENTATION string (new DICT)
12 years ago
Ali Asad Lotia
eb2bdb6642
url_get module returns dest
...
The url_get module now includes the destination in the returned JSON.
12 years ago
Ali Asad Lotia
6867d9730e
Indicate thirsty argument required if dest is dir.
...
The check for the destination being a directory is now done before
checking if the file exists, that way the user is informed that the
thirsty argument is required.
12 years ago
Michael DeHaan
1af0a4c303
Adds a thirsty=yes|no to the get_url module, such that if downloading a large file from the internet you can decide
...
whether to download it every time or not -- will replace only on change, or decide to not download. The default
is thirsty=no which will not download every time by default.
12 years ago
Michael DeHaan
ed449ed3e2
Fix indentation
12 years ago
Michael DeHaan
5ed21bf443
whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added
...
in 0.6 release)
12 years ago
Michael DeHaan
85af6986cd
Fix some subtle behavior of how the get_url module chains into the file module, plus blend the results of daisy chain
...
operations in the correct order, so the file module results overlay the original module results, not the other way
around (which keeps any failure msg's intact)
12 years ago
Michael DeHaan
baacde6c74
Add encoding lines to python modules such that they can take unicode options if they are fed them, since the
...
AnsibleModule stuff no longer base64 encodes for simplicity and speed reasons.
12 years ago
Michael DeHaan
fb8200b9b9
reinstate invalid argument checks where possible, daisy chainee/chained modules turn it off
12 years ago
Jan-Piet Mens
a81944e32b
Fix exeptions, replace 'as' by ',' as reported on IRC for Python 2.4.3 on Centos5
12 years ago
Michael DeHaan
4782bc1949
Port the file module over to the new common code infrastructure + cleanup some redundant imports since the module code already imports those things.
12 years ago
Jan-Piet Mens
62393ccc7c
Fix file module to support = in args; remove superflous call in get_url
12 years ago
Michael DeHaan
2437ee5236
Tweaking daisychain internals to allow get_url to modify the path destination when downloading to a directory.
...
Minor module refactoring.
12 years ago
Jan-Piet Mens
b4d4811077
new module: get_url
...
get module (with new module-magic-code!)
Usage: ansible -m get -a "url=http://xxxxxxx dest=fileordirctory"
all cleanups as per @mpdehaan's suggestions
add daisychain
added example playbook (get_url.yml) with URLencode example
12 years ago