You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be nice for peace of mind to include the validate option, although augeas does go out of it's way to introducing syntax erros, it's possilbe the validation command can go above and beyond.
With template, the validate option allows the user to pass in a format string (containing '%s') that will be executed on the guest. The template module will expand the jinja template and save it to a temporary file. It'll execute the command, subsituting %s for the path to the temporary file. Assuming an exit code of 0 means that there weren't any syntax errors (or any other thing that the command checks for), it'll only then move the temporary file to the actual destiation.
Would it be possible to add a
validate
option just like thetemplate
andlineinfile
module.The text was updated successfully, but these errors were encountered: