ansible.builtin.any (v2.16.5) — test

is any conditions in a list true

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

Authors: Ansible Core

Install Ansible via pip

Install with pip install ansible-core==2.16.5

Description

This test checks each condition in a list for truthiness.

Same as the C(any) Python function.

Inputs

    
_input:
    description: List of conditions, each can be a boolean or conditional expression that
      results in a boolean value.
    elements: raw
    required: true
    type: list

Outputs

_value:
  description: Returns V(True) if any element of the list was true, V(False) otherwise.
  type: boolean