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

Convert YAML string into variable structure

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

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Converts a YAML string representation into an equivalent structured Ansible variable.

Ansible automatically converts YAML strings into variable structures in most contexts, use this plugin in contexts where automatic conversion does not happen.

Inputs

    
_input:
    description: A YAML string.
    required: true
    type: string

Outputs

_value:
  description: The variable resulting from deserializing the YAML document.
  type: raw