Ansible script to manage servers.
The system use the following role namings:
bash docker stop $(docker ps -aq); docker rm $(docker ps -aq); docker volume rm $(docker volume ls -q);
To mercifull restart the server and to prevent data lost type in:
bash docker stop $(docker ps -a -q) && systemctl stop docker && shutdown -r +2 "The system will shutdown in 2 minutes"
May it's neccessary to restart some of the the docker containers manual afterwards.