Move vars to defaults
This commit is contained in:
		
							parent
							
								
									70578f2a13
								
							
						
					
					
						commit
						bf08ae8f81
					
				
					 40 changed files with 0 additions and 0 deletions
				
			
		
							
								
								
									
										32
									
								
								playbooks/roles/lego/defaults/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								playbooks/roles/lego/defaults/main.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,32 @@ | |||
| --- | ||||
| lego_host_certificates: "{{ host_services | services_get_attr('certificates') | flatten }}" | ||||
| 
 | ||||
| lego_env: | ||||
|   ACME_DNS_API_BASE: https://{{ acme_dns.host }} | ||||
|   ACME_DNS_STORAGE_PATH: /config/acme-dns-accounts.json | ||||
| 
 | ||||
|   LEGO_EMAIL: "{{ admin_email }}" | ||||
|   LEGO_PATH: /data | ||||
| 
 | ||||
|   CERTIFICATES_PATH: "{{ certificates_path }}" | ||||
| 
 | ||||
| lego_compose: | ||||
|   watchtower: false | ||||
|   network: false | ||||
|   image: goacme/lego | ||||
|   volumes: | ||||
|     - ./config:/config:ro | ||||
|     - "{{ certificates_path }}:/certificates" | ||||
|     - data:/data | ||||
|   file: | ||||
|     services: | ||||
|       app: | ||||
|         restart: never | ||||
|         network_mode: "host" | ||||
|         entrypoint: | ||||
|           - /lego | ||||
|           - --accept-tos | ||||
|           - --email={{ admin_email }} | ||||
|           - --dns=acme-dns | ||||
|     volumes: | ||||
|       data: | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue