From bdc452c620b17eebf6647550f4c68d638165f27f Mon Sep 17 00:00:00 2001
From: Michael DeHaan <michael.dehaan@gmail.com>
Date: Tue, 19 Jun 2012 21:55:57 -0400
Subject: [PATCH] Remove the -D module debug flag, which no longer is
 functional due to sudo pty requirements, and replace with -v/--verbose.

This flag will show playbook output from non-failing commands.  -v is also added to /usr/bin/ansible, but not  yet used.

I also gutted some internals code dealing with 'invocations' which allowed the callback to know what module invoked
it.  This is not something 0.5 does or needed, so callbacks have been simplified.
---
 setup | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/setup b/setup
index 52c7e62328f..fb181c93482 100755
--- a/setup
+++ b/setup
@@ -411,5 +411,8 @@ setup_result['changed'] = changed
 setup_result['md5sum']  = md5sum2 
 setup_result['ansible_facts'] = setup_options
 
+# hack to keep --verbose from showing all the setup module results
+setup_result['verbose_override'] = True
+
 print json.dumps(setup_result)