working on configuring a k3s cluster

This commit is contained in:
2022-08-02 09:42:08 -04:00
parent 31ed336880
commit 3a0f4a84b1
23 changed files with 562 additions and 37 deletions

View 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")