Using Json Query to Wrangle Complex Objects in Ansible

Описание к видео Using Json Query to Wrangle Complex Objects in Ansible

During the Ansible development phase, you will often be using modules that produce output used in successive tasks. Sometimes, the modules provide mechanisms for limiting the output, think of a "fields" key to specify what you want returned. Often you will come across modules that do a large data dump of whatever resource you are reading and you might need to filter that down a bit. Fortunately, we have a plugin for that - json_query - which is based on the python jmespath library. Even better, the jmespath library has an awesome online tutorial for testing queries against your objects. I am going to step through my process for wrangling complex data models that can come back from APIs to simplify my playbooks and make the output more readable.

Autodotes Blog Post:
https://autodotes.com/posts/gCGnzEjHu...

Комментарии

Информация по комментариям в разработке