On Tuesday, May 8, 2018 at 7:43:52 AM UTC-4, Madushan Chathuranga wrote:
>
> Hi,
>
> There is an xml module 
> (https://docs.ansible.com/ansible/2.4/xml_module.html) that would allow you 
> to extract elements of the target and output them through a Json filter 
> however without further logical manipulation you will just end up with a 
> list of all elements.
>
You have several ways to create data structures (persistent variables) 
> within the Ansible code itself which would solve the problem of the single 
> long list of elements. Push the variables through a json filter and it 
> solves the problem problem of actually using json to format data 
> intelligent, which only leaves correctly creating/populating the data 
> structures in the Ansible code as an outstanding issue. 
>
I think that will work but without more information  about specifically 
what you would like to pull from xml --> output to json it's basically just 
a guess. 

> Hope that is of some assistance.
>
 

> Thanks.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/55c7299e-64e4-4718-90ca-8ef14e75bd9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to