Json_query for ansible

Inorder to perform advanced JSON data filtering in ansible , json_query can be used.

Json_query is internally using JMESPATH which needs to be installed in the control host using the command

pip install jmespath

The following links provides good examples on how to use json_query

Ansible json_query Example – Parse JSON with Ansible

Complex data structures and the Ansible json_query filter

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s