mirror of https://github.com/ansible/ansible.git
Mirror of https://github.com/ansible/ansible.git
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.
0ef97cd917
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 | 12 years ago | |
apt | 12 years ago | |
apt_repository | 12 years ago | |
assemble | 12 years ago | |
async_status | 12 years ago | |
async_wrapper | 12 years ago | |
authorized_key | 12 years ago | |
command | 12 years ago | |
copy | 12 years ago | |
cron | 12 years ago | |
debug | 12 years ago | |
easy_install | 12 years ago | |
ec2 | 12 years ago | |
facter | 12 years ago | |
fail | 12 years ago | |
fetch | 12 years ago | |
file | 12 years ago | |
fireball | 12 years ago | |
get_url | 12 years ago | |
git | 12 years ago | |
group | 12 years ago | |
group_by | 12 years ago | |
ini_file | 12 years ago | |
lineinfile | 12 years ago | |
12 years ago | ||
mount | 12 years ago | |
mysql_db | 12 years ago | |
mysql_user | 12 years ago | |
nagios | 12 years ago | |
ohai | 12 years ago | |
pause | 12 years ago | |
ping | 12 years ago | |
pip | 12 years ago | |
postgresql_db | 12 years ago | |
postgresql_user | 12 years ago | |
raw | 12 years ago | |
script | 12 years ago | |
seboolean | 12 years ago | |
selinux | 12 years ago | |
service | 12 years ago | |
setup | 12 years ago | |
shell | 12 years ago | |
slurp | 12 years ago | |
subversion | 12 years ago | |
supervisorctl | 12 years ago | |
svr4pkg | 12 years ago | |
template | 12 years ago | |
user | 12 years ago | |
virt | 12 years ago | |
wait_for | 12 years ago | |
yum | 12 years ago |