From cf3313be0cc26cf171eaec6d37ea3d9bd5cb2726 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 24 Mar 2015 14:48:50 -0400 Subject: [PATCH] makes raw module have quiet ssh so as to avoid extra output when not requried --- lib/ansible/runner/connection_plugins/ssh.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/runner/connection_plugins/ssh.py b/lib/ansible/runner/connection_plugins/ssh.py index a7a57a01cf2..036175f6a9c 100644 --- a/lib/ansible/runner/connection_plugins/ssh.py +++ b/lib/ansible/runner/connection_plugins/ssh.py @@ -272,7 +272,10 @@ class Connection(object): if utils.VERBOSITY > 3: ssh_cmd += ["-vvv"] else: - ssh_cmd += ["-v"] + if self.runner.module_name == 'raw': + ssh_cmd += ["-q"] + else: + ssh_cmd += ["-v"] ssh_cmd += self.common_args if self.ipv6: