2022-06-24 22:50:44 +00:00
|
|
|
- name: Create folder structures
|
2022-06-24 21:44:10 +00:00
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
loop:
|
2022-06-24 22:50:44 +00:00
|
|
|
- /var/lib/rancher/k3s/agent/images
|
|
|
|
- /opt/metacluster/k3s
|
|
|
|
|
|
|
|
- name: Download & install K3s binary
|
|
|
|
ansible.builtin.get_url:
|
|
|
|
url: https://github.com/k3s-io/k3s/releases/download/{{ k3s.version }}/k3s
|
|
|
|
dest: /usr/local/bin/k3s
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: Download K3s images tarball
|
|
|
|
ansible.builtin.get_url:
|
|
|
|
url: https://github.com/k3s-io/k3s/releases/download/{{ k3s.version }}/k3s-airgap-images-amd64.tar.gz
|
|
|
|
dest: /var/lib/rancher/k3s/agent/images
|
|
|
|
|
|
|
|
- name: Download K3s install script
|
|
|
|
ansible.builtin.get_url:
|
|
|
|
url: https://get.k3s.io
|
|
|
|
dest: /opt/metacluster/k3s
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|