diff options
| author | Mike Vink <mike.vink@stater.nl> | 2023-04-24 11:13:18 +0200 |
|---|---|---|
| committer | Mike Vink <mike.vink@stater.nl> | 2023-04-24 11:13:18 +0200 |
| commit | 4140c4916d15ba5d519f401782ed8a3a5632fa49 (patch) | |
| tree | 322ce9df86d9c4a9bc511bc0c672d97476e4a377 /shell-scripts | |
| parent | c24c46ad58b1020ee204e5d5e9e5366d2b925212 (diff) | |
fixup
Diffstat (limited to 'shell-scripts')
| -rwxr-xr-x | shell-scripts/pass-ansible-vault-client | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/shell-scripts/pass-ansible-vault-client b/shell-scripts/pass-ansible-vault-client new file mode 100755 index 0000000..8b8d026 --- /dev/null +++ b/shell-scripts/pass-ansible-vault-client @@ -0,0 +1,17 @@ +#!@bash@/bin/bash +VAULT_ID="" +while [[ $# -gt 0 ]]; do + case $1 in + --vault-id) + VAULT_ID=$2 + shift + shift + ;; + --vault-id=*) + VAULT_ID="${1#*=}" + shift + ;; + esac +done + +pass show work/ansible-vault/$VAULT_ID |
