k8s-clusters/ansible/k3s-node/tasks/install-k3s.yml

11 lines
362 B
YAML
Raw Permalink Normal View History

2022-02-07 21:07:07 -06:00
- 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
2022-02-06 15:52:03 -06:00
ansible.builtin.command: >
2022-02-07 21:07:07 -06:00
env INSTALL_K3S_EXEC={{ k3s_command | default('server') }} INSTALL_K3S_SKIP_START=true INSTALL_K3S_VERSION="{{ k3s.version }}" sh /tmp/k3s-installer.sh