Add mailcow (only domains) to ansible
This commit is contained in:
		
							parent
							
								
									047c65b66a
								
							
						
					
					
						commit
						c533d203a0
					
				
					 3 changed files with 14 additions and 0 deletions
				
			
		| 
						 | 
					@ -2,4 +2,5 @@
 | 
				
			||||||
- name: Run roles for node001
 | 
					- name: Run roles for node001
 | 
				
			||||||
  hosts: node001
 | 
					  hosts: node001
 | 
				
			||||||
  roles:
 | 
					  roles:
 | 
				
			||||||
 | 
					    - mailcow
 | 
				
			||||||
    - minecraft-2
 | 
					    - minecraft-2
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										7
									
								
								_ansible/roles/mailcow/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								_ansible/roles/mailcow/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,7 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					- name: Deploy {{ svc.name }}
 | 
				
			||||||
 | 
					  tags:
 | 
				
			||||||
 | 
					    - mailcow
 | 
				
			||||||
 | 
					    - email
 | 
				
			||||||
 | 
					  block:
 | 
				
			||||||
 | 
					    - import_tasks: steps/template-site-config.yml
 | 
				
			||||||
							
								
								
									
										6
									
								
								_ansible/roles/mailcow/vars/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								_ansible/roles/mailcow/vars/main.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					svc:
 | 
				
			||||||
 | 
					  name: mailcow
 | 
				
			||||||
 | 
					  domain: mail.serguzim.me
 | 
				
			||||||
 | 
					  docker_host: host.docker.internal
 | 
				
			||||||
 | 
					  port: 3004
 | 
				
			||||||
 | 
					  additional_domains: "{{ ['autodiscover', 'autoconfig'] | product(vault_mailcow.domains) | map('join', '.') }}"
 | 
				
			||||||
		Reference in a new issue