mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2024-11-22 11:48:22 +01:00
e88f3bb056
airgap installs allow users to deploy k3s in a situation where the server is not internet connected and therefore unable to download anything externally
15 lines
364 B
YAML
15 lines
364 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
|
|
dest: "{{ k3s_install_dir }}/k3s"
|
|
mode: 0755
|
|
become: "{{ k3s_become_for_install_dir | ternary(true, false, k3s_become_for_all) }}"
|