particledecay / ansible-jsonpatch

An Ansible module for patching JSON files
MIT License
118 stars 27 forks source link

[Feature Request] Support for file creation #6

Closed meersjo closed 4 years ago

meersjo commented 5 years ago

Many other modules support a create: parameter, that indicates wether a nonexistent target file should be created at runtime.

This saves a touch operation earlier in the playbook, so I would ask for this to be added.

particledecay commented 5 years ago

I like this idea. Would you be interested in submitting a PR? Otherwise, I can take a look at it maybe this weekend.

meersjo commented 5 years ago

I'm afraid it's a little beyond me, having zero experience with python 😅

Sent from Nine


From: Joey Espinosa notifications@github.com Sent: Wednesday, 14 August 2019 14:48 To: particledecay/ansible-jsonpatch Cc: meersjo; Author Subject: Re: [particledecay/ansible-jsonpatch] [Feature Request] Support for file creation (#6)

I like this idea. Would you be interested in submitting a PR? Otherwise, I can take a look at it maybe this weekend.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

particledecay commented 4 years ago

@meersjo I've been crazy busy, but this functionality should now be in the latest master. The README has been updated to include the new options.

meersjo commented 4 years ago

Perfect, thank you :-)