Slightly more robust selection of checksum from GitHub

This commit is contained in:
Xan Manning 2020-02-09 15:00:59 +00:00
parent 3da7599eab
commit 218b9d64c9

View File

@ -18,7 +18,10 @@
- name: Ensure sha256sum is set from hashsum variable - name: Ensure sha256sum is set from hashsum variable
set_fact: 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 changed_when: false
- name: Ensure installation directory exists - name: Ensure installation directory exists