Hi all - 

I'm working on a custom module in python that takes a subset of an XML 
config, and turns it into JSON so I can use it with an Ansible playbook & 
Jinja2 template.  I want to make sure my output will be compatible with 
Ansible playbook processing.  Here's the output:

[
{"q1": {"flowcontrol-start-queuesize": "-1", "propertyCount": 5, 
"cleanup-interval": "-1", "cache-size": "5000", "persistence-mode": 
"non_persistent"}}, 
{"q2": {"flowcontrol-start-queuesize": "-1", "propertyCount": 5, 
"cleanup-interval": "-1", "cache-size": "5000", "persistence-mode": 
"non_persistent"}}, 
{"test": {"propertyCount": 1}}
]

I've added line-breaks to make it more readable.  Can this output be used 
in an Ansible playbook?  Possibly with the with_items loop?

Thanks,
Adam

-- 
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/f6a80447-7fb1-488c-9603-55a5e2be3f8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to