-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
This project seems to be unmaintained. Pull requests have languished for years.
But fortunately, this project is no longer necessary! You can configure git to use ansible-vault directly.
First, add a git driver for "ansible-vault" designated files, instructing it to use ansible-vault to convert them to text in order to diff:
git config --global diff.ansible-vault.textconv "ansible-vault view"Instruct git not to cache the plaintext, since that might present a security problem:
git config diff.ansible-vault.cachetextconv falseIn your project, add .gitattributes to identify the files that should be treated as "ansible-vault" files by git:
# add to .gitattributes
group_vars/all.yml diff=ansible-vault merge=binaryThis is based on https://stackoverflow.com/a/39511274
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels