feat: workaround 15161 #95

Merged
jon_nfc merged 1 commits from feat-workaround-15161 into development 2024-05-02 00:20:25 +00:00

View File

@ -304,16 +304,22 @@
when: > when: >
file_cached_k3s_binary.stat.checksum | default('0') != node_k3s.desired_hash file_cached_k3s_binary.stat.checksum | default('0') != node_k3s.desired_hash
# Workaround. See: https://github.com/ansible/awx/issues/15161
- name: Download K3s Binary - name: Build K3s Download URL
ansible.builtin.uri: ansible.builtin.set_fact:
url: |- cacheable: false
url_download_k3s: |-
https://github.com/k3s-io/k3s/releases/download/ https://github.com/k3s-io/k3s/releases/download/
{{- node_k3s.desired_version | urlencode -}} {{- node_k3s.desired_version | urlencode -}}
/k3s /k3s
{%- if cpu_arch.key == 'aarch64' -%} {%- if cpu_arch.key == 'aarch64' -%}
-arm64 -arm64
{%- endif %} {%- endif %}
- name: Download K3s Binary
ansible.builtin.uri:
url: "{{ url_download_k3s | string }}"
method: GET method: GET
return_content: false return_content: false
status_code: status_code: