ansible/lib/ansible
Dag Wieers 988db558b3 Add return code and error output to raw module
Since we use 'raw' heavily on equipment where 'command' and 'shell' are not (yet) working (and python may need to be installed first using raw) these improvements are necessary in order to write more complex scripts (with return code handling and separated stdout/stderr).

This change includes the following changes:

 - exec_command() now returns the return code of the command
 - _low_level_exec_command() now returns a dict, including 'rc', 'stdout' and 'stderr'
 - all users of the above interfaces have been improved to make use of the above changes
 - all connection plugins have been modified to return rc and stderr
 - fix the newline problem (stdout and stderr would have excess newlines)

In a future commit I intend to add assertions or error handling code to verify the return code in those places where it wasn't done. Since only the output was available, the return code was ignored, even though we expect them to be 0.
2012-12-23 18:04:54 +01:00
..
callback_plugins Abort a play at the start when no hosts matches, or no hosts are remaining 2012-10-02 15:54:24 +02:00
inventory Merge pull request #1747 from njharman/alpharange 2012-12-17 16:52:11 -08:00
playbook Make lookups being fatal up to the caller 2012-12-19 19:19:04 +01:00
runner Add return code and error output to raw module 2012-12-23 18:04:54 +01:00
utils Ensure each basedir is only added to the search path once 2012-12-20 14:17:12 +01:00
__init__.py Updated ansible version to align with RPM package 2012-12-01 16:37:10 +01:00
callbacks.py Change message when a play matches no hosts 2012-12-13 13:31:41 +01:00
color.py Added a ANSIBLE_FORCE_COLOR env var, which forces the color output no matter what ncurses says. 2012-10-06 20:36:07 +02:00
constants.py Set LANG in module_common.py 2012-11-27 00:16:06 -08:00
errors.py Add 'polite' YAML syntax validation and hinting. Closes #798 2012-08-07 18:24:47 -04:00
module_common.py Ensure files created by authorized_key have correct selinux context 2012-12-13 16:35:49 -08:00