feat: optionally get password from file

main
Ricard Illa 2023-06-09 12:56:49 +02:00
parent 1a369e1741
commit 078c1d7b03
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
#!/bin/sh
pass ansible-vault
PASSFILE="/srv/secrets/ansible_vault_pass"
if [ -f "$PASSFILE" ]; then
doas cat "$PASSFILE"
else
pass ansible-vault
fi