Commit Graph

5 Commits (73d9fbfc9ecb75f4567955c5b1bf2225b2ea9551)

Author SHA1 Message Date
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.
12 years ago
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.
13 years ago
Michael DeHaan f74984fb4a A better fix for slurp, expand path in the module. 13 years ago
Michael DeHaan 4a72e71cd7 Fixup slurp module usage when not running as root, fix error handling path in slurp module. 13 years ago
Michael DeHaan 908f01044c Add missing file (slurp) used by templates in non-playbook mode. 13 years ago