Skip to content

all

Collection Note

This module is part of the ansible.builtin collection. To install the collection, use:

ansible-galaxy collection install ansible.builtin
Added in version 2.4.

Synopsis

  • This test checks each condition in a list for truthiness.
  • Same as the C(all) Python function.

Parameters

Parameter Defaults / Choices Comments
_input
list / elements=raw
required
List of conditions, each can be a boolean or conditional expression that results in a boolean value.

Examples

varexpression: "{{ 3 == 3 }}"
# are all statements true?
{{ [true, booleanvar, varexpression] is all }}

Return Values

Key Data Type Description Returned
_value boolean Returns V(True) if all elements of the list were True, V(False) otherwise.

Authors

  • Ansible Core