1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/runner/action_plugins
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
..
__init__.py Add init, though it's not really used. 2012-09-25 08:21:59 -04:00
add_host.py Avoid creating temporary directory for some action plugins 2012-11-28 21:34:55 +01:00
async.py Various performance streamlining and making the file features usable in all modules without daisy chaining. 2012-10-20 22:55:09 -04:00
copy.py Fix typo in first_available_file error path 2012-11-19 23:02:26 +01:00
debug.py Avoid creating temporary directory for some action plugins 2012-11-28 21:34:55 +01:00
fail.py Avoid creating temporary directory for some action plugins 2012-11-28 21:34:55 +01:00
fetch.py Add destination path to fetch result 2012-11-20 15:39:48 +01:00
group_by.py Avoid creating temporary directory for some action plugins 2012-11-28 21:34:55 +01:00
normal.py Pass module arguments as argument instead of keeping it in runner 2012-09-23 23:38:26 +02:00
pause.py Fix output of pause plugin. 2012-10-29 10:57:13 +01:00
raw.py Add return code and error output to raw module 2012-12-23 18:04:54 +01:00
script.py Added 'script', a module that can push and insantly run a remote script. Replaces the need to copy+command. 2012-10-20 12:12:07 -04:00
template.py Don't double dwim first_available_file in template 2012-11-06 20:34:05 +01:00