MOON
Server: Apache
System: Linux kvm.asjudinet.com 5.14.0-611.54.6.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 04:23:18 EDT 2026 x86_64
User: asjudine (1001)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.9/site-packages/ansible/plugins/filter/shuffle.yml
DOCUMENTATION:
  name: shuffle
  version_added: "2.6"
  short_description: randomize a list
  description:
    - Take the elements of the input list and return in a random order.
  positional: _input
  options:
    _input:
      description: A number or list to randomize.
      type: list
      elements: any
      required: true
    seed:
      description: If specified use a pseudo random selection instead (repeatable).
      type: str

EXAMPLES: |

  randomized_list: "{{ ['a','b','c'] | shuffle}}"
  per_host_repeatable: "{{ ['a','b','c'] | shuffle(seed=inventory_hostname) }}"

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