You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Dag Wieers 0ef97cd917 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.
12 years ago
add_host add add_host action plugin - add hosts to inventory during a playbook 12 years ago
apt DOCUMENTATION strings 12 years ago
apt_repository Fix ppa syntax in apt_repository module doc 12 years ago
assemble DOCUMENTATION strings 12 years ago
async_status do not conditionalize this for older Python, fix indentation, better use 12 years ago
async_wrapper chmod -x for all module files in source checkout 12 years ago
authorized_key Ensure files created by authorized_key have correct selinux context 12 years ago
command DOCUMENTATION strings 12 years ago
copy chmod -x for all module files in source checkout 12 years ago
cron Indicate the reboot option was added in 1.0 12 years ago
debug DOCUMENTATION strings 12 years ago
easy_install chmod -x for all module files in source checkout 12 years ago
ec2 DOCUMENTATION strings 12 years ago
facter chmod -x for all module files in source checkout 12 years ago
fail DOCUMENTATION strings 12 years ago
fetch DOCUMENTATION strings 12 years ago
file module_formatter: re-instate code 12 years ago
fireball Add return code and error output to raw module 12 years ago
get_url DOCUMENTATION strings 12 years ago
git Further refine remote branch tracking in b1ec6e8 12 years ago
group Fix "NameError: global name 'name' is not defined" exception 12 years ago
group_by Add a group_by action plugin. 12 years ago
ini_file ini_file: prohibit section name 'default' 12 years ago
lineinfile DOCUMENTATION strings 12 years ago
mail mail module: add MIME attachments, port and addresses with phrases 12 years ago
mount chmod -x for all module files in source checkout 12 years ago
mysql_db DOCUMENTATION strings 12 years ago
mysql_user chmod -x for all module files in source checkout 12 years ago
nagios added support for scheduling downtime for all services on host 12 years ago
ohai DOCUMENTATION strings 12 years ago
pause Reformat code: examples consistently 12 years ago
ping DOCUMENTATION strings 12 years ago
pip pip module improvements 12 years ago
postgresql_db DOCUMENTATION strings 12 years ago
postgresql_user Select all fields from the user, as some of them are version-dependent 12 years ago
raw Add return code and error output to raw module 12 years ago
script fix and clarify 'script' docs 12 years ago
seboolean DOCUMENTATION strings 12 years ago
selinux DOCUMENTATION strings 12 years ago
service Use shlex for rc.conf parsing. 12 years ago
setup Streamline code 12 years ago
shell DOCUMENTATION strings 12 years ago
slurp DOCUMENTATION strings 12 years ago
subversion Passing in module instead of just fail_json per upstream request. 12 years ago
supervisorctl supervisorctl: document the 'present' option 12 years ago
svr4pkg DOCUMENTATION strings 12 years ago
template chmod -x for all module files in source checkout 12 years ago
user DOCUMENTATION strings 12 years ago
virt chmod -x for all module files in source checkout 12 years ago
wait_for removed env as per project policy 12 years ago
yum if user has manually installed an intermediate version - don't ignore it: issue 1754 12 years ago