summaryrefslogtreecommitdiff
path: root/docs/docsite/rst/user_guide/playbooks_filters.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docsite/rst/user_guide/playbooks_filters.rst')
-rw-r--r--docs/docsite/rst/user_guide/playbooks_filters.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/docsite/rst/user_guide/playbooks_filters.rst b/docs/docsite/rst/user_guide/playbooks_filters.rst
index 7d200a3a00..a37cf66149 100644
--- a/docs/docsite/rst/user_guide/playbooks_filters.rst
+++ b/docs/docsite/rst/user_guide/playbooks_filters.rst
@@ -882,10 +882,22 @@ To get the minimum value from list of numbers::
{{ list1 | min }}
+.. versionadded:: 2.11
+
+To get the minimum value in a list of objects::
+
+ {{ [{'val': 1}, {'val': 2}] | min(attribute='val') }}
+
To get the maximum value from a list of numbers::
{{ [3, 4, 2] | max }}
+.. versionadded:: 2.11
+
+To get the maximum value in a list of objects::
+
+ {{ [{'val': 1}, {'val': 2}] | max(attribute='val') }}
+
.. versionadded:: 2.5
Flatten a list (same thing the `flatten` lookup does)::