ansible.builtin.mandatory (v2.16.0) — filter

make a variable's existance mandatory

| "added in version" historical of ansible.builtin"

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Depending on context undefined variables can be ignored or skipped, this ensures they force an error.

Inputs

    
msg:
    description: The customized message that is printed when the given variable is not
      defined.
    required: false
    type: str

_input:
    description: Mandatory expression.
    required: true
    type: raw

Outputs

_value:
  description: The input if defined, otherwise an error.
  type: raw