mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-10-31 08:28:54 +01:00
16 lines
409 B
YAML
16 lines
409 B
YAML
---
|
|
|
|
- name: Ensure installation directory exists
|
|
ansible.builtin.file:
|
|
path: "{{ k3s_install_dir }}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: Ensure k3s binary is copied from controller to target host
|
|
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 }}"
|