ansible/get_password.sh

9 lines
138 B
Bash
Raw Normal View History

2022-08-31 17:06:40 +02:00
#!/bin/sh
PASSFILE="/srv/secrets/ansible_vault_pass"
if [ -f "$PASSFILE" ]; then
doas cat "$PASSFILE"
else
pass ansible-vault
fi