Use json_query whenever possible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
We should probably use json_query, making use of jmespath, in our playbooks/roles more, to
simplify things like:
- ansible_local is defined
- ansible_
- ansible_
- ansible_
- ansible_
to a single line.
It also helps getting the data into a sepecific format without being too hard to read.
Please read the jmespath [1] and json_query [2] documentation
[1]: http://
[2]: http://
Changed in openstack-ansible: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Opinion in the #ansible IRC channel is to dissuade use of json-query in general when other mechanisms are supported.