Add download-version
This commit is contained in:
		
							parent
							
								
									1b765689e6
								
							
						
					
					
						commit
						1a76b94a46
					
				@ -1,9 +1,10 @@
 | 
				
			|||||||
- name: Get architecture
 | 
					- name: Get architecture
 | 
				
			||||||
  set_fact:
 | 
					  set_fact:
 | 
				
			||||||
    arch: "{{ 'amd64' if ansible_architecture == 'x86_64' else 'arm64' }}"
 | 
					    arch: "{{ 'amd64' if ansible_architecture == 'x86_64' else 'arm64' }}"
 | 
				
			||||||
 | 
					    versionUri: "{% if wireguard_ipv6_converter.version == 'latest' %}latest/download{% else %}download/{{ wireguard_ipv6_converter.version }}{% endif %}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Download binary
 | 
					- name: Download binary
 | 
				
			||||||
  get_url:
 | 
					  get_url:
 | 
				
			||||||
    url: https://github.com/Ruakij/wg-ipv6-converter/releases/download/{{ wireguard_ipv6_converter.version }}/wg-ipv6-converter_{{ arch }}
 | 
					    url: https://github.com/Ruakij/wg-ipv6-converter/releases/{{ versionUri }}/wg-ipv6-converter_{{ arch }}
 | 
				
			||||||
    dest: /usr/local/bin/wg-ipv6-converter
 | 
					    dest: /usr/local/bin/wg-ipv6-converter
 | 
				
			||||||
    mode: "744"
 | 
					    mode: "744"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user