register-var

Example:

# Display the currents user home directory.
- register-var:
    var: ansible_env.HOME

Description

n/a

Variables

Name Type Default Description

register_name

string --

n/a Required

var_name

string --

The Ansible variable name to debug Required

Examples

Example 1

Display the currents user home directory.

Code
- register-var:
    var: ansible_env.HOME

Command-line

frecklecute register-var --help

Usage: frecklecute register-var [OPTIONS]

  Displays the content of an (internal) Ansible variable.

Options:
  --register-name REGISTER_NAME  n/a  [required]
  --var-name VAR_NAME            The Ansible variable name to debug
                                 [required]
  --help                         Show this message and exit.