From 218b9d64c9b08f9e16d511a587805fc13a69ce95 Mon Sep 17 00:00:00 2001 From: Xan Manning Date: Sun, 9 Feb 2020 15:00:59 +0000 Subject: [PATCH] Slightly more robust selection of checksum from GitHub --- tasks/build/download-k3s.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/build/download-k3s.yml b/tasks/build/download-k3s.yml index 8ebc5cb..32f889a 100644 --- a/tasks/build/download-k3s.yml +++ b/tasks/build/download-k3s.yml @@ -18,7 +18,10 @@ - name: Ensure sha256sum is set from hashsum variable set_fact: - k3s_hash_sum: "{{ (k3s_hash_sum_raw.content.split('\n') | reject('search', 'images') | first).split() | first }}" + k3s_hash_sum: "{{ (k3s_hash_sum_raw.content.split('\n') | + select('search', 'k3s' + k3s_arch_suffix) | + reject('search', 'images') | + first).split() | first }}" changed_when: false - name: Ensure installation directory exists