mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-12-14 23:00:21 +01:00
4bcf3ea9c4
this is to allow the role to proceed as if the binary was downloaded as expected from the web
15 lines
442 B
YAML
15 lines
442 B
YAML
---
|
|
|
|
- name: Ensure installation directory exists
|
|
ansible.builtin.file:
|
|
path: "{{ k3s_install_dir }}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: Ensure k3s binary is downloaded
|
|
ansible.builtin.copy:
|
|
src: k3s
|
|
# TODO: allow airgap to bypass version post-fix
|
|
dest: "{{ k3s_install_dir }}/k3s-{{ k3s_release_version }}"
|
|
mode: 0755
|
|
become: "{{ k3s_become_for_install_dir | ternary(true, false, k3s_become_for_all) }}"
|