diff options
Diffstat (limited to 'vault.sh')
-rwxr-xr-x | vault.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vault.sh b/vault.sh new file mode 100755 index 0000000..bac110e --- /dev/null +++ b/vault.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -ex + +password_bin=$(command -v pass || command -v gopass) +password_name="${2:-infrastructure/ansible/root}" + +"${password_bin}" show "${password_name}" | head -n 1 |