2019-04-26 21:10:27 +02:00
|
|
|
---
|
2023-11-08 22:41:50 +01:00
|
|
|
- name: Download k3s install script
|
2023-11-07 22:35:08 +01:00
|
|
|
ansible.builtin.get_url:
|
2023-11-08 22:41:50 +01:00
|
|
|
url: https://get.k3s.io/
|
2023-11-07 18:54:21 +01:00
|
|
|
timeout: 120
|
2023-11-08 22:41:50 +01:00
|
|
|
dest: /usr/local/bin/k3s-install.sh
|
2020-05-12 22:17:06 +02:00
|
|
|
owner: root
|
|
|
|
group: root
|
2020-05-17 05:27:08 +02:00
|
|
|
mode: 0755
|
2019-04-26 21:10:27 +02:00
|
|
|
|
2023-11-08 22:41:50 +01:00
|
|
|
- name: Download k3s binary
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: /usr/local/bin/k3s-install.sh
|
|
|
|
environment:
|
|
|
|
INSTALL_K3S_SKIP_START: "true"
|
|
|
|
INSTALL_K3S_VERSION: "{{ k3s_version }}"
|
|
|
|
changed_when: true
|