10 lines
362 B
YAML
10 lines
362 B
YAML
- name: download k3s installer
|
|
ansible.builtin.get_url:
|
|
url: https://get.k3s.io
|
|
dest: /tmp/k3s-installer.sh
|
|
mode: '0777'
|
|
|
|
- name: run k3s installer
|
|
become: true
|
|
ansible.builtin.command: >
|
|
env INSTALL_K3S_EXEC={{ k3s_command | default('server') }} INSTALL_K3S_SKIP_START=true INSTALL_K3S_VERSION="{{ k3s.version }}" sh /tmp/k3s-installer.sh
|