From f30dbc9b20d9082d0fbc33d8f89d41164319e399 Mon Sep 17 00:00:00 2001 From: Xav Paice Date: Wed, 18 Nov 2015 14:33:25 +1300 Subject: [PATCH] Added stdout and stderr to puppet output for rc=2 --- lib/ansible/modules/extras/system/puppet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/puppet.py b/lib/ansible/modules/extras/system/puppet.py index 2cb82f8f85a..3a3fb6e3544 100644 --- a/lib/ansible/modules/extras/system/puppet.py +++ b/lib/ansible/modules/extras/system/puppet.py @@ -196,7 +196,7 @@ def main(): error=True, stdout=stdout, stderr=stderr) elif rc == 2: # success with changes - module.exit_json(rc=0, changed=True) + module.exit_json(rc=0, changed=True, stdout=stdout, stderr=stderr) elif rc == 124: # timeout module.exit_json(