%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.9/site-packages/ansible/plugins/filter/
Upload File :
Create Path :
Current 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

Zerion Mini Shell 1.0