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:
parent
c8950389e8
commit
483634d3e9
1 changed files with 7 additions and 7 deletions
14
iiab-install
14
iiab-install
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue