From 649689bfb68fddd2668fb1e2453c2b6cf201817f Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 18 Feb 2016 07:01:39 -0800 Subject: [PATCH] documented new verbosity option --- utilities/logic/debug.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/utilities/logic/debug.py b/utilities/logic/debug.py index 5142709dbe0..89d9254a08e 100644 --- a/utilities/logic/debug.py +++ b/utilities/logic/debug.py @@ -38,6 +38,12 @@ options: var: description: - A variable name to debug. Mutually exclusive with the 'msg' option. + verbosity: + description: + - A number that controls when the debug is run, if you set to 3 it will only run debug when -vvv or above + required: False + default: 0 + version_added: "2.1" author: - "Dag Wieers (@dagwieers)" - "Michael DeHaan" @@ -53,8 +59,8 @@ EXAMPLES = ''' - shell: /usr/bin/uptime register: result -- debug: var=result +- debug: var=result verbosity=2 - name: Display all variables/facts known for a host - debug: var=hostvars[inventory_hostname] + debug: var=hostvars[inventory_hostname] verbosity=4 '''