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

returns a product of a list and its elements

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

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

This produces a product of an object and the subelement values of that object, similar to the subelements lookup. This lets you specify individual subelements to use in a template O(_input).

Inputs

    
_input:
    description: Original list.
    elements: any
    required: true
    type: list

_subelement:
    description: Label of property to extract from original list items.
    required: true
    type: str

skip_missing:
    default: false
    description: If V(True), ignore missing subelements, otherwise missing subelements
      generate an error.
    type: bool

Outputs

_value:
  description: List made of original list and product of the subelement list.
  elements: any
  type: list