Skip to content
Snippets Groups Projects
Commit 21f1c315 authored by jurgenhaas's avatar jurgenhaas
Browse files

Add custom playbooks

parent 718fbf4c
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,19 @@ if [ "$1" == "" ]
exit 101;
fi
PLAYBOOK=$1.yml
if [ $1 == "custom" ]
then
shift
if [ $INVENTORY == "./inventory/inventory" ]
then
PLAYBOOK_PREFIX="./inventory"
else
PLAYBOOK_PREFIX="./inventory/$ANSIBLE_COMPANY"
fi
else
PLAYBOOK_PREFIX="."
fi
PLAYBOOK=$PLAYBOOK_PREFIX/$1.yml
shift
if [ ! -f $INVENTORY ]
......
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