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

randomize a list

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

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Take the elements of the input list and return in a random order.

Inputs

    
seed:
    description: If specified use a pseudo random selection instead (repeatable).
    type: str

_input:
    description: A number or list to randomize.
    elements: any
    required: true
    type: list

Outputs

_value:
  description: Random number or list element.
  elements: any
  type: list