dotfiles/scripts/get_vault_pass.sh
Matej Focko 4b80dac477
feat: allow plain-text diff of Ansible Vault
• ‹.gitattributes›
  · use custom “diff algorithm” with text conversion
  · also merge as binary files to avoid corrupting the encrypted content

• ‹ansible.cfg› — pass path to an executable script for getting vault
  password; this will run the script to get the password

• ‹gitconfig› — add the custom “diff algorithm”

• ‹get_vault_pass.sh› — use Bitwarden CLI to get the Ansible Vault pass

Signed-off-by: Matej Focko <me@mfocko.xyz>
2025-04-21 12:17:41 +02:00

3 lines
64 B
Bash
Executable file

#!/bin/sh
bw get password "git.mfocko.xyz:mfocko/dotfiles.git"