From a5dd280149280ac97b26830d64c814bec630ad90 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 29 Jun 2012 18:48:37 -0400 Subject: [PATCH] Fix up the output of the raw module when run within /usr/bin/ansible --- CHANGELOG.md | 1 + lib/ansible/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d872117b5a..e94d9d07b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ Ansible Changes By Release * SELinux facts now sourced from the python selinux library * removed module debug option -D * added --verbose, which shows output from successful playbook operations +* print the output of the raw command inside /usr/bin/ansible as with command/shell 0.4 "Unchained" ------- May 23, 2012 diff --git a/lib/ansible/utils.py b/lib/ansible/utils.py index 65650d2adf..5fc640a284 100644 --- a/lib/ansible/utils.py +++ b/lib/ansible/utils.py @@ -132,7 +132,7 @@ def host_report_msg(hostname, module_name, result, oneline): ''' summarize the JSON results for a particular host ''' buf = '' failed = is_failed(result) - if module_name in [ 'command', 'shell' ] and 'ansible_job_id' not in result: + if module_name in [ 'command', 'shell', 'raw' ] and 'ansible_job_id' not in result: if not failed: buf = command_success_msg(hostname, result, oneline) else: