Migrate services part
This commit is contained in:
		
							parent
							
								
									7c59e4ae57
								
							
						
					
					
						commit
						73bce8f6e5
					
				
					 157 changed files with 3883 additions and 9 deletions
				
			
		
							
								
								
									
										12
									
								
								roles/shlink/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								roles/shlink/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| --- | ||||
| - name: Set common facts | ||||
|   ansible.builtin.import_tasks: tasks/set-default-facts.yml | ||||
| 
 | ||||
| - name: Deploy {{ svc.name }} | ||||
|   vars: | ||||
|     svc: "{{ shlink_svc }}" | ||||
|     env: "{{ shlink_env }}" | ||||
|     compose: "{{ shlink_compose }}" | ||||
|   block: | ||||
|     - name: Import tasks to deploy common service | ||||
|       ansible.builtin.import_tasks: tasks/deploy-common-service.yml | ||||
							
								
								
									
										31
									
								
								roles/shlink/vars/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								roles/shlink/vars/main.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,31 @@ | |||
| --- | ||||
| shlink_svc: | ||||
|   domain: msrg.cc | ||||
|   additional_domains: | ||||
|     - "emgauwa.app" | ||||
|   name: shlink | ||||
|   port: 8080 | ||||
| 
 | ||||
| shlink_env: | ||||
|   DEFAULT_DOMAIN: "{{ shlink_svc.domain }}" | ||||
|   IS_HTTPS_ENABLED: true | ||||
|   TIMEZONE: "{{ timezone }}" | ||||
| 
 | ||||
|   DEFAULT_SHORT_CODES_LENGTH: 8 | ||||
|   MULTI_SEGMENT_SLUGS_ENABLED: false | ||||
|   SHORT_URL_TRAILING_SLASH: true | ||||
|   REDIRECT_APPEND_EXTRA_PATH: true | ||||
|   DEFAULT_BASE_URL_REDIRECT: "https://www.serguzim.me/" | ||||
| 
 | ||||
|   DB_DRIVER: postgres | ||||
|   DB_HOST: "{{ postgres.host }}" | ||||
|   DB_PORT: "{{ postgres.port }}" | ||||
|   DB_NAME: shlink | ||||
|   DB_USER: "{{ vault_shlink.db.user }}" | ||||
|   DB_PASSWORD: "{{ vault_shlink.db.pass }}" | ||||
| 
 | ||||
|   GEOLITE_LICENSE_KEY: "{{ vault_shlink.geolite_key }}" | ||||
| 
 | ||||
| shlink_compose: | ||||
|   watchtower: true | ||||
|   image: shlinkio/shlink | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue