infra/ansible/misc/vault-keyring-client.sh

7 lines
205 B
Bash
Raw Normal View History

2023-07-03 14:01:38 +02:00
#!/bin/sh
readonly vault_password_file_encrypted="$(dirname $0)/vault-$2-password.age"
flock "$vault_password_file_encrypted" \
age -i ~/.age/ansible-vault-pw --decrypt "$vault_password_file_encrypted"