Ansible Filter json query

From NovaOrdis Knowledge Base
Revision as of 09:15, 5 July 2021 by Ovidiu (talk | contribs) (→‎Use Cases)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

External

Internal

Overview

Use Cases

Selecting Individual Map Fields from a List of Maps

Produce a list:

"{{ find_result.files | json_query('[*].path') }}"

To apply a regular expression to each element of the list, see:

Apply regex_replace to Each Element of a List