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.2).
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
Copy of community.general.json_query used internally in the collection to ease RPM packaging, so we don’t need to package/release/support the whole community.general collection for RHV customers
The original can be found at link https://github.com/ansible-collections/community.general/blob/main/plugins/filter/json_query.py
Input
This describes the input of the filter, the value before | ovirt.ovirt.json_query.
Parameter |
Comments |
|---|---|
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 |
|---|---|
query Returned: success |