Note
This filter 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.bar.
New in ns2.col 2.0.0
Do some barring.
This describes the input of the filter, the value before | ns2.col.bar.
Parameter |
Comments |
|---|---|
The main input. |
This describes positional parameters of the filter. These are the values positional1, positional2 and so on in the following
example: input | ns2.col.bar(positional1, positional2, ...)
Parameter |
Comments |
|---|---|
Some foo. |
|
And some bar. Choices:
|
This describes keyword parameters of the filter. These are the values key1=value1, key2=value2 and so on in the following
example: input | ns2.col.bar(key1=value1, key2=value2, ...)
Parameter |
Comments |
|---|---|
Something else. Choices:
|
Note
When keyword and positional parameters are used together, positional parameters must be listed before keyword parameters:
input | ns2.col.bar(positional1, positional2, key1=value1, key2=value2)
{'a': 1} | ns2.col.bar({'b': 2}, baz='cde')
Key |
Description |
|---|---|
The result. Returned: success |