Ansible Module ansible.builtin.debug: Difference between revisions
Jump to navigation
Jump to search
(→var) |
|||
Line 8: | Line 8: | ||
=Example= | =Example= | ||
<syntaxhighlight lang='yaml'> | <syntaxhighlight lang='yaml'> | ||
- name: | - name: Debug | ||
debug: | debug: | ||
msg: Some message that refers to the content of {{ some_var }} | msg: Some message that refers to the content of {{ some_var }} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Module Arguments= | =Module Arguments= | ||
==<tt>msg</tt>== | ==<tt>msg</tt>== |
Revision as of 09:24, 4 July 2021
External
Internal
Overview
Can be used to issue debug messages, in which variables can be embedded as {{ variable_name }}
.
Example
- name: Debug
debug:
msg: Some message that refers to the content of {{ some_var }}
Module Arguments
msg
A string to display. Can include variable names introduced with {{ ... }}
. If the only thing to display is a variable, it must be quoted: "{{ var_name }}"
. If this is the case, consider using var.
var
A variable name to debug. Mutually exclusive with the msg option. Must not use {{ ... }}
Jinja variable delimiters.
- name: Debug
debug:
var: java_module_files