ansible.builtin.rekey_on_member (v2.16.5) — filter

Rekey a list of dicts into a dict using a member

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

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.5

Description

Iterate over several iterables in parallel, producing tuples with an item from each one.

Inputs

    
_key:
    description: The key to rekey.
    required: true
    type: str

_input:
    description: Original dictionary.
    required: true
    type: dict

duplicates:
    choices:
    - overwrite
    - error
    default: error
    description: How to handle duplicates.
    type: str

Outputs

_value:
  description: The resulting dictionary.
  type: dict