From 453d267489ad8d0e2544fb5e178c6b92a3f57383 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 --- lib/ansible/modules/utilities/logic/debug.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/utilities/logic/debug.py b/lib/ansible/modules/utilities/logic/debug.py index 5142709dbe0..89d9254a08e 100644 --- a/lib/ansible/modules/utilities/logic/debug.py +++ b/lib/ansible/modules/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 '''