This commit is contained in:
Marco Ochse 2024-03-24 17:22:43 +01:00
parent 3e9c94c3ac
commit ebffec9b0f
2 changed files with 3 additions and 1 deletions

View file

@ -149,6 +149,7 @@ fi
# Run Ansible Playbook
echo "### Now running T-Pot Ansible Installation Playbook ..."
echo
rm ${HOME}/install_tpot.log
ANSIBLE_LOG_PATH=${HOME}/install_tpot.log ansible-playbook ${myANSIBLE_TPOT_PLAYBOOK} -i 127.0.0.1, -c local --tags "${myANSIBLE_TAG}" ${myANSIBLE_BECOME_OPTION}
# Something went wrong

View file

@ -79,6 +79,7 @@ fi
# Run Ansible Playbook
echo "### Now running T-Pot Ansible Uninstallation Playbook ..."
echo
rm ${HOME}/uninstall_tpot.log
ANSIBLE_LOG_PATH=${HOME}/uninstall_tpot.log ansible-playbook ${myANSIBLE_TPOT_PLAYBOOK} -i 127.0.0.1, -c local --tags "${myANSIBLE_TAG}" ${myANSIBLE_BECOME_OPTION}
# Something went wrong
@ -91,7 +92,7 @@ if [ ! $? -eq 0 ];
else
echo "### Playbook was successful."
echo "### Now removing ${HOME}/tpotce."
rm -rf ${HOME}/tpotce
sudo rm -rf ${HOME}/tpotce
rm -rf ${HOME}/tpot.yml
echo
fi