ovirt.ovirt.json_query filter – Copy of community.general.json_query

Note

This filter plugin is part of the ovirt.ovirt collection (version 3.2.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install ovirt.ovirt.

To use it in a playbook, specify: ovirt.ovirt.json_query.

Synopsis

Input

This describes the input of the filter, the value before | ovirt.ovirt.json_query.

Parameter

Comments

Input

string / required

Value to be converted

Examples

Query data using jmespath query language ( http://jmespath.org ). Example:
- ansible.builtin.debug: msg="{{ instance | json_query(tagged_instances[*].block_device_mapping.*.volume_id') }}"

Return Value

Key

Description

Return value

string

query

Returned: success

Hint

Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.