On Tuesday, July 23, 2019 at 6:09:06 PM UTC+5:30, Rahul Kumar 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? >
Take a look at modules in Kubernetes space for handling module parameters. 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. > You may want to write plugin for this. Take a look at httpapi plugin for such requirement - https://github.com/ansible/ansible/tree/devel/lib/ansible/plugins/httpapi 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/cefd2db5-b239-4031-82f1-744477051145%40googlegroups.com.
