mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
Implemented restart procedures
This commit is contained in:
12
README.md
12
README.md
@@ -1,5 +1,6 @@
|
||||
# Server-Playbook
|
||||
[](https://www.gnu.org/licenses/agpl-3.0)
|
||||
|
||||
## Description
|
||||
Ansible script to manage servers.
|
||||
|
||||
@@ -13,7 +14,18 @@ The system use the following role namings:
|
||||
|docker-|applications which run on docker containers on the system|
|
||||
|
||||
## Debug
|
||||
|
||||
### Cleanup docker
|
||||
``bash
|
||||
docker stop $(docker ps -aq); docker rm $(docker ps -aq); docker volume rm $(docker volume ls -q);
|
||||
``
|
||||
|
||||
### Restart
|
||||
|
||||
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.
|
||||
|
Reference in New Issue
Block a user