Closed fabiocaseri closed 5 years ago
If the file exists and it's not pretty-printed, it will be pretty-printed at the first change.
- name: Add or replace 'baz' member jsonpatch: src: "test.json" pretty: yes operations: - op: add path: "/baz" value: "quz"
I didn't see this PR until now (GH notifications are awful), but this functionality exists in the latest version of the module. Thanks for this anyway, and sorry about that!
If the file exists and it's not pretty-printed, it will be pretty-printed at the first change.