wtsi-hgi/hgi-systems

custom ansible filter to allow `jq` filters

Closed this issue · 1 comments

It would be nice if we could use jq filters (https://stedolan.github.io/jq/manual/) for the more complex lookups that can often be very hack-ish using ansible's built-in filters.

We could write a custom filter to pass the data through to pyjq: https://pypi.python.org/pypi/pyjq

@jrandall: Ansible 2.2 introduces a new json_query filter, based on JMESPath. It's not jq but it looks like it would be just as good for complex lookups!