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

Convert a series of YAML documents into a 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 documents in a string representation into an equivalent structured Ansible variable.

Ansible internally auto-converts YAML strings into variable structures in most contexts, but by default does not handle 'multi document' YAML files or strings.

If multiple YAML documents are not supplied, this is the equivalend of using C(from_yaml).

Inputs

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

Outputs

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