JSON JMES Query need solution for proper format

30 views
Skip to first unread message

Aharonu

unread,
Sep 22, 2022, 2:07:29 AM9/22/22
to ansible...@googlegroups.com

Hi All,


I am referring https://www.middlewareinventory.com/blog/ansible-playbook-read-json-file/ --> Complex JSON JMES Queries and Ansible Playbook

Per this i see it should be like below screenshot output but when i test my end i see different format.

could anyone please suggest if something missing my ansible configuration file or reason so i am getting diff format?

my side output:

enter image description here

actual output:


enter image description here  

Todd Lewis

unread,
Sep 22, 2022, 6:29:12 AM9/22/22
to Ansible Project
It's the same data, only you're getting it in YAML format, while the article you referenced shows it in JSON format. The format you get is determined by which callback plugin is active. See https://docs.ansible.com/ansible/latest/plugins/callback.html for details.

Aharonu

unread,
Sep 22, 2022, 11:04:59 PM9/22/22
to ansible...@googlegroups.com
Thank you for your response ans clear explanation.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b8e70871-82f4-43a9-8349-4eebe8dc3d09n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages