From 8d5686bc38693464330255821c6e0dd100a9f22c Mon Sep 17 00:00:00 2001 From: mg Date: Mon, 14 Dec 2020 15:05:12 +0100 Subject: [PATCH] cv4pve: CL-Link als Variable (#3) cv4pve: CL-Link als Variable Co-authored-by: Michael Grote <38253905+quotengrote@users.noreply.github.com> Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/3 --- group_vars/virt.yml | 1 + roles/mgrote.cv4pve-autosnap/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/group_vars/virt.yml b/group_vars/virt.yml index 6fb8fc7a..2b67dbaa 100644 --- a/group_vars/virt.yml +++ b/group_vars/virt.yml @@ -42,6 +42,7 @@ cv4pve_api_token: "{{ lookup('keepass', 'cv4pve_api_token', 'password') }}" cv4pve_vmid: all,-109,-158,-153 cv4pve_keed_snapshots: 7 + cv4pve_dl_link: "https://github.com/Corsinvest/cv4pve-autosnap/releases/download/v1.9.10/cv4pve-autosnap-linux-x64.zip" # Ansible Variablen ### sudo diff --git a/roles/mgrote.cv4pve-autosnap/tasks/main.yml b/roles/mgrote.cv4pve-autosnap/tasks/main.yml index 2ab27e05..ca94002b 100644 --- a/roles/mgrote.cv4pve-autosnap/tasks/main.yml +++ b/roles/mgrote.cv4pve-autosnap/tasks/main.yml @@ -11,7 +11,7 @@ - name: download archives become: yes ansible.builtin.get_url: ## hier variable für version - url: https://github.com/Corsinvest/cv4pve-autosnap/releases/download/{{ cv4pve_version }}/cv4pve-autosnap-linux-x64.zip + url: "{{ cv4pve_dl_link }}" dest: /tmp/cv4pve/cv4pve-autosnap-linux-x64.zip mode: '0775'