Commit 85ba71a7 by Michael DeHaan

Split -vv from -vvv

parent cac4effd
...@@ -28,8 +28,14 @@ if os.path.exists("/usr/bin/cowsay"): ...@@ -28,8 +28,14 @@ if os.path.exists("/usr/bin/cowsay"):
elif os.path.exists("/usr/games/cowsay"): elif os.path.exists("/usr/games/cowsay"):
cowsay = "/usr/games/cowsay" cowsay = "/usr/games/cowsay"
def vv(msg, host=None):
return verbose(msg, host=host, caplevel=1)
def vvv(msg, host=None): def vvv(msg, host=None):
if utils.VERBOSITY > 2: return verbose(msg, host=host, caplevel=2)
def verbose(msg, host=None, caplevel=2):
if utils.VERBOSITY > caplevel:
if host is None: if host is None:
print stringc(msg, 'blue') print stringc(msg, 'blue')
else: else:
......
...@@ -37,7 +37,7 @@ from ansible import errors ...@@ -37,7 +37,7 @@ from ansible import errors
from ansible import module_common from ansible import module_common
import poller import poller
import connection import connection
from ansible.callbacks import DefaultRunnerCallbacks, vvv from ansible.callbacks import DefaultRunnerCallbacks, vv, vvv
HAS_ATFORK=True HAS_ATFORK=True
try: try:
...@@ -249,7 +249,7 @@ class Runner(object): ...@@ -249,7 +249,7 @@ class Runner(object):
module_name = 'command' module_name = 'command'
self.module_args += " #USE_SHELL" self.module_args += " #USE_SHELL"
vvv("ARGS %s" % self.module_args, host=conn.host) vv("REMOTE_MODULE %s %s" % (module_name, self.module_args), host=conn.host)
exec_rc = self._execute_module(conn, tmp, module_name, self.module_args, inject=inject) exec_rc = self._execute_module(conn, tmp, module_name, self.module_args, inject=inject)
return exec_rc return exec_rc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment