From 1a76b94a463c9eb98f0f460d2f88273b02b4e150 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Wed, 12 Apr 2023 14:58:43 +0200 Subject: [PATCH] Add download-version --- wireguard-ipv6-converter/tasks/deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wireguard-ipv6-converter/tasks/deploy.yml b/wireguard-ipv6-converter/tasks/deploy.yml index e060f32..cb7a3d0 100644 --- a/wireguard-ipv6-converter/tasks/deploy.yml +++ b/wireguard-ipv6-converter/tasks/deploy.yml @@ -1,9 +1,10 @@ - name: Get architecture set_fact: 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 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 mode: "744"