Add basic ansible stuff for management
acme-dns is fully handled by ansible already. All services should be created by ansible in the end.
This commit is contained in:
		
							parent
							
								
									607ad23697
								
							
						
					
					
						commit
						7ff7dfe807
					
				
					 16 changed files with 162 additions and 3 deletions
				
			
		
							
								
								
									
										14
									
								
								_ansible/inventory/group_vars/all/compose_defaults.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								_ansible/inventory/group_vars/all/compose_defaults.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,14 @@
 | 
			
		|||
compose_default_file:
 | 
			
		||||
  services:
 | 
			
		||||
    app:
 | 
			
		||||
      image: "{{ compose.image }}"
 | 
			
		||||
      restart: always
 | 
			
		||||
      labels:
 | 
			
		||||
        com.centurylinklabs.watchtower.enable: "{{ compose.watchtower | default(false) }}"
 | 
			
		||||
      networks:
 | 
			
		||||
        apps:
 | 
			
		||||
          aliases:
 | 
			
		||||
            - "{{ service.name }}"
 | 
			
		||||
  networks:
 | 
			
		||||
    apps:
 | 
			
		||||
      external: true
 | 
			
		||||
							
								
								
									
										8
									
								
								_ansible/inventory/group_vars/all/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								_ansible/inventory/group_vars/all/main.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,8 @@
 | 
			
		|||
admin_email: tobias@msrg.cc
 | 
			
		||||
 | 
			
		||||
postgres:
 | 
			
		||||
  host: db.serguzim.me
 | 
			
		||||
  port: 5432
 | 
			
		||||
 | 
			
		||||
services_path: /opt/services/
 | 
			
		||||
caddy_config_path: "{{ (services_path, 'caddy', 'config', 'conf.d') | path_join }}"
 | 
			
		||||
							
								
								
									
										1
									
								
								_ansible/inventory/host_vars/node002/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								_ansible/inventory/host_vars/node002/main.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
services_path: /opt/services/
 | 
			
		||||
							
								
								
									
										6
									
								
								_ansible/inventory/serguzim.net.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								_ansible/inventory/serguzim.net.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
all:
 | 
			
		||||
  hosts:
 | 
			
		||||
    local-dev:
 | 
			
		||||
      ansible_connection: local
 | 
			
		||||
    node002:
 | 
			
		||||
      ansible_connection: local
 | 
			
		||||
		Reference in a new issue