This commit is contained in:
Marco Ochse
2024-03-24 16:59:02 +01:00
parent 3a81e988da
commit e2d9362f8a
5 changed files with 28 additions and 18 deletions

View File

@ -79,7 +79,7 @@ fi
# Run Ansible Playbook
echo "### Now running T-Pot Ansible Uninstallation Playbook ..."
echo
ANSIBLE_LOG_PATH=${PWD}/uninstall_tpot.log ansible-playbook ${myANSIBLE_TPOT_PLAYBOOK} -i 127.0.0.1, -c local --tags "${myANSIBLE_TAG}" ${myANSIBLE_BECOME_OPTION}
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
if [ ! $? -eq 0 ];
@ -90,8 +90,8 @@ if [ ! $? -eq 0 ];
exit 1
else
echo "### Playbook was successful."
echo "### Now removing $HOME/tpotce."
rm -rf $HOME/tpotce
echo "### Now removing ${HOME}/tpotce."
rm -rf ${HOME}/tpotce
echo
fi