summaryrefslogtreecommitdiff
path: root/shell-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'shell-scripts')
-rwxr-xr-xshell-scripts/pass-ansible-vault-client17
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