From ab2e6fded1907e7ae8bf12eda32ecf23617435a0 Mon Sep 17 00:00:00 2001 From: "Jon \"The Nice Guy\" Spriggs" Date: Wed, 12 Sep 2018 21:55:48 +0100 Subject: [PATCH] Show multi-line messages in debug documentation (#23000) * Show multi-line messages in debug documentation * Add two-line entry * Indicate that jinja2 filters are not applied here * Fix to incorrect documentation change --- lib/ansible/modules/utilities/logic/debug.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ansible/modules/utilities/logic/debug.py b/lib/ansible/modules/utilities/logic/debug.py index 2b06872024..480e088fc4 100644 --- a/lib/ansible/modules/utilities/logic/debug.py +++ b/lib/ansible/modules/utilities/logic/debug.py @@ -66,4 +66,10 @@ EXAMPLES = ''' debug: var: hostvars[inventory_hostname] verbosity: 4 + +# Example that prints two lines of messages, but only if there's an environment value set +- debug: + msg: + - "Provisioning based on YOUR_KEY which is: '{{ lookup('env', 'YOUR_KEY') }}" + - "These servers were built using the password of '{{ password_used }}'. Please retain this for later use." '''