Ansible Module ansible.builtin.debug: Difference between revisions
Jump to navigation
Jump to search
(→msg) |
|||
Line 14: | Line 14: | ||
=Module Arguments= | =Module Arguments= | ||
==<tt>msg</tt>== | ==<tt>msg</tt>== | ||
A quoted string to display. Can include variable names introduced with <code>{{ ... }}</code>. | |||
==<tt>var</tt>== | |||
A variable name to debug. Mutually exclusive with the [[#msg|msg]] option. Must not use <code>{{ ... }}</code> Jinja variable delimiters. |
Revision as of 09:19, 4 July 2021
External
Internal
Overview
Can be used to issue debug messages, in which variables can be embedded as {{ variable_name }}
.
Example
- name: display the content of a variable
debug:
msg: Some message that refers to the content of {{ some_var }}
Module Arguments
msg
A quoted string to display. Can include variable names introduced with Template:...
.
var
A variable name to debug. Mutually exclusive with the msg option. Must not use Template:...
Jinja variable delimiters.