mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-30 04:49:09 -07:00
Split -vv from -vvv
This commit is contained in:
parent
cac4effd8f
commit
85ba71a7fe
2 changed files with 9 additions and 3 deletions
|
@ -28,8 +28,14 @@ if os.path.exists("/usr/bin/cowsay"):
|
|||
elif os.path.exists("/usr/games/cowsay"):
|
||||
cowsay = "/usr/games/cowsay"
|
||||
|
||||
def vv(msg, host=None):
|
||||
return verbose(msg, host=host, caplevel=1)
|
||||
|
||||
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:
|
||||
print stringc(msg, 'blue')
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue