1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

bail early if playbook not found

This commit is contained in:
Jerry Vonau 2017-11-05 00:41:41 -04:00
parent c8950389e8
commit 483634d3e9

View file

@ -12,6 +12,13 @@ OS=${OS//\"/}
export ANSIBLE_LOG_PATH="$CWD/iiab-install.log"
if [ ! -f $PLAYBOOK ]; then
echo "IIAB Playbook not found."
echo "Please run this command from the top level of the git repo."
echo "Exiting."
exit 1
fi
if [ $OS = "raspbian" ]; then
echo "found"
REBOOT=`uname -a | grep 4.9.59-v7+ | wc -l`
@ -58,13 +65,6 @@ else
fi
fi
if [ ! -f $PLAYBOOK ]; then
echo "IIAB Playbook not found."
echo "Please run this command from the top level of the git repo."
echo "Exiting."
exit 1
fi
# if vars/local_vars.yml is missing, put a default one in place - First Run
if [ ! -f ./vars/local_vars.yml ]; then
case $OS in