mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-26 12:27:28 +01:00
Slightly more robust selection of checksum from GitHub
This commit is contained in:
parent
3da7599eab
commit
218b9d64c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user