Files
k3s/tasks/main.yml
2023-11-19 14:57:18 +03:00

16 lines
380 B
YAML

---
- name: check if binary already exists
stat:
path: "{{ k3s_binary_dir }}/{{ k3s_binary_name }}"
register: binary_check_result
- name: install binary
include_tasks: installation.yml
when: not binary_check_result.stat.exists or k3s_force_update
- name: general preparation
include_tasks: preparation.yml
- name: configuration
include_tasks: configuration.yml