ansible/get_password.sh

9 lines
138 B
Bash
Executable File

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