mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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
This commit is contained in:
parent
3c083837c0
commit
ab2e6fded1
1 changed files with 6 additions and 0 deletions
|
@ -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."
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue