debug-vars

Example:

# Displays a the current users username and home directory.
- debug-vars:
    vars:
    - ansible_env.HOME
    - ansible_env.USER

Description

n/a

Variables

Name Type Default Description

vars

list --

the Ansible variable name(s) to debug Required

Examples

Example 1

Displays a the current users username and home directory.

Code
- debug-vars:
    vars:
    - ansible_env.HOME
    - ansible_env.USER

Command-line

frecklecute debug-vars --help

Usage: frecklecute debug-vars [OPTIONS] VARS

  Displays the content of an (internal) Ansible variable.

Options:
  --help  Show this message and exit.