working on configuring a k3s cluster
This commit is contained in:
22
ansible-5/roles/k0s/tasks/download.yml
Normal file
22
ansible-5/roles/k0s/tasks/download.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
|
||||
- name: Download k0s binary k0s-{{ k0s_version }}-amd64
|
||||
get_url:
|
||||
url: https://github.com/k0sproject/k0s/releases/download/{{ k0s_version }}/k0s-{{ k0s_version }}-amd64
|
||||
dest: "{{ k0s_binary_dest }}"
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "{{ ansible_user }}"
|
||||
mode: 0755
|
||||
when: ansible_facts.architecture == "x86_64"
|
||||
|
||||
- name: Download k0s binary k0s-{{ k0s_version }}-arm64
|
||||
get_url:
|
||||
url: https://github.com/k0sproject/k0s/releases/download/{{ k0s_version }}/k0s-{{ k0s_version }}-arm64
|
||||
dest: "{{ k0s_binary_dest }}"
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "{{ ansible_user }}"
|
||||
mode: 0755
|
||||
when:
|
||||
- ( ansible_facts.architecture is search("arm") and
|
||||
ansible_facts.userspace_bits == "64" ) or
|
||||
ansible_facts.architecture is search("aarch64")
|
||||
Reference in New Issue
Block a user