feat: added install kubectl and helm

This commit is contained in:
2024-02-26 11:20:30 +00:00
parent 00e4f7e5ab
commit f3ae6b8b9f
6 changed files with 68 additions and 6 deletions

View File

@@ -1,15 +1,33 @@
---
- name: check if binary already exists
- name: check if binary k3s already exists
stat:
path: "{{ k3s_binary_dir }}/{{ k3s_binary_name }}"
register: binary_check_result
register: binary_k3s_check_result
- name: install binary
include_tasks: installation.yml
when: not binary_check_result.stat.exists or k3s_force_update
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