You really should consider developing a plugin for this rather than twisting 
YAML to make it happen.  Check out 
https://docs.ansible.com/ansible/latest/dev_guide/developing_plugins.html for 
writing this in Python in a way that’s callable from Ansible

Sent from my iPhone

> On Jul 30, 2019, at 5:37 AM, Rahul Kumar <[email protected]> wrote:
> 
> Any experts view on this ?
> 
>> On Tue, 23 Jul 2019 at 18:08, Rahul Kumar <[email protected]> wrote:
>> There is URI module present in Ansible which lets you invoke REST End Points 
>> and it works preety well.
>> Currently i have lot of JSON Objects and corresponding REST end points 
>> ofcourse for each.
>> Is it a good practice for each and every parameter inside a JSON object 
>> (which is model object for REST service) configurable via jinja template in 
>> Ansible rather than POSTing complete Payload to a base URL from a file?
>> I mean it can be huge parameters if we make each service payload parameter 
>> as variable in ansible.
>> Customer demand is : they want each and every parameter used for REST API 
>> configurable via Ansible.
>> I dont know is it good or bad, for me it is not good practice.
>> 
>> Rahul
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/CAGH8rEwjeG%3DtOmDzTCGt5iZUU5%3Dbj5zSVfBrjDX2dG_-_%3DpDoQ%40mail.gmail.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/BE590701-D1B6-4415-87DC-BA442C199479%40gmail.com.

Reply via email to