Ansible Module ansible.builtin.debug: Difference between revisions
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
<syntaxhighlight lang='yaml'> | <syntaxhighlight lang='yaml'> | ||
- name: display the content of a variable | - name: display the content of a variable | ||
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> |
Revision as of 05:44, 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 }}