34 lines
953 B
YAML
34 lines
953 B
YAML
---
|
|
- name: check if binary k3s already exists
|
|
stat:
|
|
path: "{{ k3s_binary_dir }}/{{ k3s_binary_name }}"
|
|
register: binary_k3s_check_result
|
|
|
|
- name: install binary
|
|
include_tasks: installation.yml
|
|
when: not binary_k3s_check_result.stat.exists or k3s_force_update
|
|
|
|
- name: general preparation
|
|
include_tasks: preparation.yml
|
|
|
|
- name: check if binary kubectl already exists
|
|
stat:
|
|
path: "{{ k3s_binary_dir }}/kubectl"
|
|
register: binary_kubectl_check_result
|
|
|
|
- name: install binary kubectl
|
|
include_tasks: installation_kubectl.yml
|
|
when: not binary_kubectl_check_result.stat.exists or k3s_kubectl_force_update
|
|
|
|
- name: check if binary helm already exists
|
|
stat:
|
|
path: "{{ k3s_binary_dir }}/helm"
|
|
register: binary_helm_check_result
|
|
|
|
- name: install binary helm
|
|
include_tasks: installation_helm.yml
|
|
when: not binary_helm_check_result.stat.exists or k3s_helm_force_update
|
|
|
|
- name: configuration
|
|
include_tasks: configuration.yml
|