Ansible, YAML, and JSON - chronicler.tech
https://chronicler.tech/ansible-yaml-and-json06.10.2021 · Ansible is very flexible with data types, and easily transforms primitives and even JSON strings, but from time to time you need to process and transform something a bit more complex than String to Boolean conversions. Ansible is not the first choice for data transformation, but its core functions are Python-based, baked by Jinja2 templates.
5 ways to process JSON data in Ansible - Opensource.com
opensource.com › 21 › 4Apr 28, 2021 · JSON, which is widely used in Ansible, is one of them. There are many resources available in Ansible to work with JSON data, and this article presents five of them. While all these resources are used together in sequence in the examples, it is probably sufficient to use just one or two in most real-life scenarios.