ns2.col.foo test – Is something a foo bar

Note

This test plugin is part of the ns2.col collection (version 2.1.0).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install ns2.col.

To use it in a playbook, specify: ns2.col.foo.

Synopsis

Input

This describes the input of the test, the value before is ns2.col.foo or is not ns2.col.foo.

Parameter

Comments

Input

dictionary / required

Something to test.

Keyword parameters

This describes keyword parameters of the test. These are the values key1=value1, key2=value2 and so on in the following examples: input is ns2.col.foo(key1=value1, key2=value2, ...) and input is not ns2.col.foo(key1=value1, key2=value2, ...)

Parameter

Comments

bar

string

Foo bar.

Examples

some_var: "{{ {'a': 1} is ns2.col.foo }}"

Return Value

Key

Description

Return value

boolean

Whether the input is a foo.

Returned: success

Authors

  • Nobody