mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-22 11:48:22 +01:00
Override facts when commit hash is specified
This commit is contained in:
parent
4b4a49bdd5
commit
b16f142c21
@ -12,6 +12,14 @@
|
||||
k3s_hash_url: "{{ k3s_github_download_url }}/{{ k3s_release_version }}/sha256sum-{{ k3s_arch }}.txt"
|
||||
check_mode: false
|
||||
|
||||
- name: Override k3s_binary_url and k3s_hash_url facts for testing specific commit
|
||||
set_fact:
|
||||
k3s_binary_url: "https://storage.googleapis.com/k3s-ci-builds/k3s{{ k3s_arch_suffix }}-{{ k3s_release_version }}"
|
||||
k3s_hash_url: "https://storage.googleapis.com/k3s-ci-builds/k3s{{ k3s_arch_suffix }}-{{ k3s_release_version }}.sha256sum"
|
||||
when:
|
||||
- k3s_release_version | regex_search("^[a-z0-9]{40}$")
|
||||
check_mode: false
|
||||
|
||||
- name: Ensure the k3s hashsum is downloaded
|
||||
uri:
|
||||
url: "{{ k3s_hash_url }}"
|
||||
|
Loading…
Reference in New Issue
Block a user