From 92e6f25e588538f0388287ed8e34662e4bca0180 Mon Sep 17 00:00:00 2001 From: Travis Truman Date: Fri, 12 Aug 2016 13:54:27 -0500 Subject: [PATCH] Adding support for the `debug` var to enable verbose logging Change-Id: Ie7f15293ed8a1434427d7af3a668b381a2ae439d --- defaults/main.yml | 3 +++ templates/barbican.conf.j2 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 3ceabea..06ec3a4 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -13,6 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +## Verbosity Options +debug: False + # Set the package install state for distribution packages # Options are 'present' and 'latest' barbican_package_state: "latest" diff --git a/templates/barbican.conf.j2 b/templates/barbican.conf.j2 index 2622749..105a920 100644 --- a/templates/barbican.conf.j2 +++ b/templates/barbican.conf.j2 @@ -2,7 +2,7 @@ # Disable stderr logging use_stderr = False # Show debugging output in logs (sets DEBUG log level output) -#debug = True +debug = {{ debug }} # Address to bind the API server bind_host = 0.0.0.0