I would like to run the encryption of some files automatically during git commit.
Unfortunately ansible-vault returns an error if the files are already encrypted, but this is obviously not an error, it’s the expected state.
But I need a return value of 0 (even if the files are already encrypted) in order to run it during the pre-commit checks.
Any Idea how to do that?