mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	
			
				
					
						
					
					f2a4c8009103dfb5832fd830ea139081a9142f00
				
			
			
		
	Server-Playbook
Description
Ansible script to manage servers.
Roles
The system use the following role namings:
| role prefix | meaning | 
|---|---|
| system- | general system roles which apply basic configurations | 
| native- | applications which run native on the system | 
| 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.
Description
				
					Languages
				
				
								
								
									Python
								
								57.4%
							
						
							
								
								
									Jinja
								
								41%
							
						
							
								
								
									Shell
								
								0.7%
							
						
							
								
								
									Dockerfile
								
								0.4%
							
						
							
								
								
									JavaScript
								
								0.3%
							
						
							
								
								
									Other
								
								0.1%