Ansible Filter json query

From NovaOrdis Knowledge Base
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