Bugfix: Checking of hash fixed for k3s v0.3.0 release

This commit is contained in:
Xan Manning 2019-04-06 12:04:09 +01:00
parent 728dd1ff12
commit 27083e1d5b

View File

@ -19,7 +19,8 @@
- name: Ensure sha256sum is set from hashsum variable
shell: >
set -o pipefail && \
echo "{{ k3s_hash_sum_raw.content }}" | grep 'k3s' | awk '{ print $1 }'
echo "{{ k3s_hash_sum_raw.content }}" | \
grep -E ' k3s{{ k3s_arch_suffix }}$' | awk '{ print $1 }'
changed_when: false
args:
executable: /bin/bash