Would the lineinfile <http://docs.ansible.com/ansible/lineinfile_module.html> module be sufficient? If you're updating a single line in your JSON file, this seems appropriate.
On Monday, May 2, 2016 at 2:59:15 PM UTC-4, Will LaSeur wrote: > > I'm looking for a quick way to update a json file without needing to > template the file. I want to be able to change the values each time a job > is being run based on user input. > > I tried this: http://www.geekytidbits.com/ansible-module-modify-json/ > > But was unsuccessful to get it working. > > Thanks! > > Will > -- 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 post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b28be682-ccb6-457f-90b3-793efecc2d5d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.