mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
groupby_as_dict: mention Jinja2's groupby filter (#9040)
Mention Jinja2's groupby filter.
This commit is contained in:
@@ -13,6 +13,8 @@ DOCUMENTATION = '''
|
|||||||
author: Felix Fontein (@felixfontein)
|
author: Felix Fontein (@felixfontein)
|
||||||
description:
|
description:
|
||||||
- Transform a sequence of dictionaries to a dictionary where the dictionaries are indexed by an attribute.
|
- Transform a sequence of dictionaries to a dictionary where the dictionaries are indexed by an attribute.
|
||||||
|
- This filter is similar to the Jinja2 C(groupby) filter. Use the Jinja2 C(groupby) filter if you have multiple entries with the same value,
|
||||||
|
or when you need a dictionary with list values, or when you need to use deeply nested attributes.
|
||||||
positional: attribute
|
positional: attribute
|
||||||
options:
|
options:
|
||||||
_input:
|
_input:
|
||||||
|
|||||||
Reference in New Issue
Block a user