mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-22 05:09:12 +00:00
ref: improve options documentation
Signed-off-by: Fiehe Christoph <c.fiehe@eurodata.de>
This commit is contained in:
parent
bfd973cdb1
commit
8811ff59bc
1 changed files with 11 additions and 2 deletions
|
|
@ -124,12 +124,21 @@ options:
|
|||
type: str
|
||||
choices:
|
||||
flatten: Flatten lists, converting nested lists into single lists. Does not support any additional options.
|
||||
dedup: Remove duplicates from lists. Supported options are C(keep) (str) with C(first) (default) for dropping duplicates
|
||||
except for the first occurrence or C(last) for the last occurrence.
|
||||
dedup: Remove duplicates from lists. Supported option is C(keep).
|
||||
options:
|
||||
description:
|
||||
- Options as key value pairs.
|
||||
type: dict
|
||||
suboptions:
|
||||
keep:
|
||||
description:
|
||||
- Determines which duplicates (if any) to keep.
|
||||
- Only valid in combination with the V(dedup) list transformation.
|
||||
type: str
|
||||
default: first
|
||||
choices:
|
||||
first: Drop duplicates except for the first occurrence.
|
||||
last: Drop duplicates except for the last occurrence.
|
||||
default: []
|
||||
version_added: 12.5.0
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue