You have a parameter insert before or insert after where you can regex and update your code. Let us know if it works. Or put your code and error to get it to work
Please post your json and tell what you want to manipulate exactly.
Lineinfile sounds fragile. You might have better results with from_json, combine, and to_json.
Thank you, please look at the json file on the remote server. I’m trying to replace the nas path using win_lineinfile, but the path that I’m providing is updating at the end of the file.
Hi dick, please update how to do with from_json and to_json.