Skip to content
Snippets Groups Projects
Verified Commit 0596dec5 authored by Florian Pritz's avatar Florian Pritz
Browse files

Switch to more general wrapper script for running playbooks and vault


Signed-off-by: default avatarFlorian Pritz <bluewind@xinu.at>
parent ac7a2f15
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
command=$(basename "$0")
if [[ $command = "ansible-command-wrapper" ]]; then
if [[ $# -gt 0 ]]; then
command=$1
shift
else
echo "usage: ansible-command-wrapper <command name> [arguments]" >&2
exit 1
fi
fi
exec "$command" --vault-password-file $(dirname $0)/misc/get-vault-pass.sh "$@"
#!/bin/bash
exec ansible-playbook --vault-password-file $(dirname $0)/misc/get-vault-pass.sh "$@"
ansible-command-wrapper
\ No newline at end of file
#!/bin/bash
exec ansible-vault --vault-password-file $(dirname $0)/misc/get-vault-pass.sh "$@"
ansible-command-wrapper
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment