Thanks Andrew , but is it good to make each and every parameter of Rest api
response as configurable using Ansible , considering we have huge
parameters?

On Tue, 30 Jul 2019 at 3:19 PM, Andrew Feller <andrew.fel...@gmail.com>
wrote:

> 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 <rajput4u4...@gmail.com> wrote:
>
> Any experts view on this ?
>
> On Tue, 23 Jul 2019 at 18:08, Rahul Kumar <rajput4u4...@gmail.com> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGH8rEwjeG%3DtOmDzTCGt5iZUU5%3Dbj5zSVfBrjDX2dG_-_%3DpDoQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGH8rEwjeG%3DtOmDzTCGt5iZUU5%3Dbj5zSVfBrjDX2dG_-_%3DpDoQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> --
> 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-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/BE590701-D1B6-4415-87DC-BA442C199479%40gmail.com
> <https://groups.google.com/d/msgid/ansible-project/BE590701-D1B6-4415-87DC-BA442C199479%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAGH8rEwHZphqnt%2BSY-mdd24nEWQrDhQUvmVO1yQavfifK394PA%40mail.gmail.com.

Reply via email to