From 89b7e10436d2ee4adda4a95fb996d0a4444b899b Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 26 Nov 2018 17:08:39 -0500 Subject: [PATCH] updated var docs (#48957) * updates var docs, fixes #48949 Co-Authored-By: bcoca --- changelogs/fragments/doc_debug_var.yml | 2 ++ lib/ansible/modules/utilities/logic/debug.py | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 changelogs/fragments/doc_debug_var.yml diff --git a/changelogs/fragments/doc_debug_var.yml b/changelogs/fragments/doc_debug_var.yml new file mode 100644 index 0000000000..1318b69a26 --- /dev/null +++ b/changelogs/fragments/doc_debug_var.yml @@ -0,0 +1,2 @@ +bugfixes: + - document debug's var already having implicit moustaches diff --git a/lib/ansible/modules/utilities/logic/debug.py b/lib/ansible/modules/utilities/logic/debug.py index 480e088fc4..6be2607cf0 100644 --- a/lib/ansible/modules/utilities/logic/debug.py +++ b/lib/ansible/modules/utilities/logic/debug.py @@ -33,6 +33,8 @@ options: var: description: - A variable name to debug. Mutually exclusive with the 'msg' option. + - Be aware that this option already runs in Jinja2 context and has an implicit ``{{ }}`` wrapping, + so you should not be using Jinja2 delimiters unless you are looking for double interpolation. 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