feat(nfc_kubernetes): build url and on use cast as string
!61 https://github.com/ansible/awx/issues/15161 closes #27
This commit is contained in:
		| @ -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: | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user