mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-19 21:52:27 +00:00
Add check if Playbook ran successfully.
This commit is contained in:
parent
ccdbb950d1
commit
338ebcef80
1 changed files with 12 additions and 0 deletions
12
install.sh
12
install.sh
|
@ -145,6 +145,18 @@ echo "### Now running T-Pot Ansible Installation Playbook ..."
|
||||||
echo
|
echo
|
||||||
ANSIBLE_LOG_PATH=${PWD}/install_tpot.log ansible-playbook ${myANSIBLE_TPOT_PLAYBOOK} -i 127.0.0.1, -c local --tags "${myANSIBLE_TAG}" ${myANSIBLE_BECOME_OPTION}
|
ANSIBLE_LOG_PATH=${PWD}/install_tpot.log ansible-playbook ${myANSIBLE_TPOT_PLAYBOOK} -i 127.0.0.1, -c local --tags "${myANSIBLE_TAG}" ${myANSIBLE_BECOME_OPTION}
|
||||||
|
|
||||||
|
# Something went wrong
|
||||||
|
if [ ! $? -eq 0 ];
|
||||||
|
then
|
||||||
|
echo "### Something went wrong with the Playbook, please review the output and / or install_tpot.log for clues."
|
||||||
|
echo "### Aborting."
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "### Playbook was successful."
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
# Asking for web user name
|
# Asking for web user name
|
||||||
myWEB_USER=""
|
myWEB_USER=""
|
||||||
while [ 1 != 2 ];
|
while [ 1 != 2 ];
|
||||||
|
|
Loading…
Reference in a new issue