When changing an existing file, if the visudo -c check fail it will delete also the original file.
A nice way would be to use validate_cmd in file resource to do the single file validation and eventually use visudo -c (without filename) to do a complete validation.
I'm creating a PR for this that could help also with #125
When changing an existing file, if the visudo -c check fail it will delete also the original file. A nice way would be to use validate_cmd in file resource to do the single file validation and eventually use visudo -c (without filename) to do a complete validation.
I'm creating a PR for this that could help also with #125