mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2025-01-21 11:30:21 +01:00
Slightly more robust selection of checksum from GitHub
This commit is contained in:
parent
3da7599eab
commit
218b9d64c9
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue