Michael DeHaan
f120bfebcf
Very basic --diff option for showing what happens when templates change.
...
Probably output is not useful if not used with --limit
Works well with --check mode
2013-02-07 22:52:25 -05:00
Jan-Piet Mens
d184f72aa9
DOCUMENTATION strings
2012-11-21 18:49:30 +01:00
Michael DeHaan
6f6559670f
chmod -x for all module files in source checkout
2012-11-19 13:47:40 -05:00
Jan-Piet Mens
a722e4fc79
module docs for slurp
2012-09-30 16:58:15 +02:00
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.
2012-08-02 21:29:10 -04:00
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.
2012-07-30 21:50:32 -04:00
Michael DeHaan
853d1179e0
By defining a main function here, and including it ahead of the boilerplate insertion symbol, tracebacks are
...
now accurate with respect to the main function, but may include lines not in the original file. A lot better
than before, where they were offset.
2012-07-20 06:37:46 -04:00
Michael DeHaan
830821bf2c
Common module code upgrades
2012-07-17 23:09:57 -04:00
Michael DeHaan
73d9fbfc9e
Added code to allow insertion of boilerplate into modules to make them able to share lots of code, the result
...
should be a huge reduction of total ansible source, at a slight cost of difficulty in original module development.
We need to apply this now to all modules, but may need to have some exemptions to things like command, which should
subclass this module.
2012-07-17 22:34:52 -04:00
Stephen Fromm
67ee30f135
Apply logging of arguments to modules (issue #122 )
...
The ohai and facter modules use /usr/bin/logger to log the fact that
they have been invoked. I added 'import os' to the ping module
so that it could have the same syslog statements as the other modules.
I separated the condensed:
shlex.split(open(argfile, 'r').read())
into two separate statements similar to the other modules.
2012-05-09 15:19:20 -07:00
Michael DeHaan
f74984fb4a
A better fix for slurp, expand path in the module.
2012-04-20 07:54:38 -04:00
Michael DeHaan
4a72e71cd7
Fixup slurp module usage when not running as root, fix error handling path in slurp module.
2012-04-19 11:38:44 -04:00
Michael DeHaan
908f01044c
Add missing file (slurp) used by templates in non-playbook mode.
2012-04-19 09:03:40 -04:00