mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-09-27 04:03:43 +02:00
Fixed ansible-lint rule 306, pipefail
This commit is contained in:
parent
c7119c3033
commit
728dd1ff12
@ -17,8 +17,12 @@
|
||||
register: k3s_hash_sum_raw
|
||||
|
||||
- name: Ensure sha256sum is set from hashsum variable
|
||||
shell: "echo \"{{ k3s_hash_sum_raw.content }}\" | grep 'k3s' | awk '{ print $1 }'"
|
||||
shell: >
|
||||
set -o pipefail && \
|
||||
echo "{{ k3s_hash_sum_raw.content }}" | grep 'k3s' | awk '{ print $1 }'
|
||||
changed_when: false
|
||||
args:
|
||||
executable: /bin/bash
|
||||
register: k3s_hash_sum
|
||||
|
||||
- name: Ensure k3s binary is downloaded
|
||||
|
Loading…
Reference in New Issue
Block a user