From 7f6fcc3407c52fbcf226a497eae9b9a371223a28 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Sat, 23 Jan 2021 02:11:24 +0530 Subject: [PATCH] json_query: Update documentation (#73302) --- docs/docsite/rst/user_guide/playbooks_filters.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docsite/rst/user_guide/playbooks_filters.rst b/docs/docsite/rst/user_guide/playbooks_filters.rst index 457df1de995..d65b0a8f5d6 100644 --- a/docs/docsite/rst/user_guide/playbooks_filters.rst +++ b/docs/docsite/rst/user_guide/playbooks_filters.rst @@ -682,7 +682,7 @@ To select a single element or a data subset from a complex data structure in JSO This filter has migrated to the `community.general `_ collection. Follow the installation instructions to install that collection. -.. note:: This filter is built upon **jmespath**, and you can use the same syntax. For examples, see `jmespath examples `_. +.. note:: You must manually install the **jmespath** dependency on the Ansible controller before using this filter. This filter is built upon **jmespath**, and you can use the same syntax. For examples, see `jmespath examples `_. Consider this data structure:: @@ -1660,7 +1660,7 @@ To get a date object from a string use the `to_datetime` filter:: # get amount of days between two dates. This returns only number of days and discards remaining hours, minutes, and seconds {{ (("2016-08-14 20:00:12" | to_datetime) - ("2015-12-25" | to_datetime('%Y-%m-%d'))).days }} - + .. note:: For a full list of format codes for working with python date format strings, see https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior. .. versionadded:: 2.4