summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2015-03-24 14:48:50 -0400
committerBrian Coca <brian.coca+git@gmail.com>2015-03-24 15:00:51 -0400
commitcf3313be0cc26cf171eaec6d37ea3d9bd5cb2726 (patch)
tree20d2eb047affb2b6f560ca960df924d1ffd594dd
parent5d28d46b166014a544910151bf2b18af654a1940 (diff)
downloadansible-cf3313be0cc26cf171eaec6d37ea3d9bd5cb2726.tar.gz
makes raw module have quiet ssh so as to avoid extra output when not requried
-rw-r--r--lib/ansible/runner/connection_plugins/ssh.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ansible/runner/connection_plugins/ssh.py b/lib/ansible/runner/connection_plugins/ssh.py
index a7a57a01cf..036175f6a9 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: