debug
Collection: builtin
Full Name: parallax.builtin.debug
Aliases: ansible.builtin.debug, debug
Controller module — runs on the local controller, not on remote hosts.
Synopsis
Print a message or the value of a variable during a play
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| msg | string | Debug message to display | ||
| var | string | Variable to display | ||
| verbosity | int | 0 | Level of verbosity |
Example
- name: Show which release is being deployed
debug:
msg: "Deploying {{ app_version }} to {{ inventory_hostname }}"
- name: Dump a registered result at high verbosity
debug:
var: service_state
verbosity: 2