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

NameTypeRequiredDefaultDescription
msgstringDebug message to display
varstringVariable to display
verbosityint0Level 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