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

permutations from the elements of a list

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

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.5

Description

Create a list of the permutations of lists from the elements of a list.

Unlike combinations, in permutations order is significant.

Inputs

    
_input:
    description: Elements to base the permutations on.
    required: true
    type: list

list_size:
    description: The size of the list for each permutation.
    required: true
    type: int

Outputs

_value:
  description: List of permutations lists resulting from the supplied elements and
    list size.
  type: list