Closed JOJ0 closed 4 years ago
@JOJ0 sorry it took so long to respond (GitHub's notifications are hot garbage).
There is actually a pretty print option if you care about writing the JSON back in a human-readable format, just use pretty: yes
.
I realize this isn't in the README. I'll create an issue to add that.
Hi, I dont' know if this is an issue with the module or generally with my bad Ansible knowledge:
The manipulated json file is being removed all (human readable) formatting (\n etc).
I also tried with first copying config.sample.json to config.json and then just using src: with json_patch so it overwrites the original filename - it's the same - all formatting gets lost and config.json is a proper json but in an unpretty "oneline format".
Is this me using it wrong or is it supposed to be like that?
Thanks in advance Jojo