1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -e -u
have() {
command -v "$1" >/dev/null
}
if have gpg2; then
GPG="gpg2"
else
GPG="gpg"
fi
exec "$GPG" --batch --use-agent --decrypt $(dirname $0)/vault_passphrase.asc 2>/dev/null
My personal ansible roles and playbooks [deprecated in favor of nixos]
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -e -u
have() {
command -v "$1" >/dev/null
}
if have gpg2; then
GPG="gpg2"
else
GPG="gpg"
fi
exec "$GPG" --batch --use-agent --decrypt $(dirname $0)/vault_passphrase.asc 2>/dev/null