feat: add talos support (#1192)
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
cec32120db
commit
91d8b84f3c
33 files changed
+537
-42
No files matched your search
@@ -1,7 +1,6 @@
|
||||
---
|
||||
- name: Check if required CLI tools are present
|
||||
ansible.builtin.shell: |
|
||||
command -v {{ item }} >/dev/null 2>&1
|
||||
ansible.builtin.shell: command -v {{ item }} >/dev/null 2>&1
|
||||
loop: ["age", "cloudflared", "flux", "sops", "jq", "kubeconform", "kustomize"]
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
@@ -10,10 +9,18 @@
|
||||
|
||||
- name: Check if required CLI tools are present for k0s
|
||||
when: bootstrap_distribution == "k0s"
|
||||
ansible.builtin.shell: |
|
||||
command -v {{ item }} >/dev/null 2>&1
|
||||
ansible.builtin.shell: command -v {{ item }} >/dev/null 2>&1
|
||||
loop: ["k0sctl"]
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
register: result
|
||||
failed_when: result.rc != 0 and result.rc != 127
|
||||
|
||||
- name: Check if required CLI tools are present for talos
|
||||
when: bootstrap_distribution == "talos"
|
||||
ansible.builtin.shell: command -v {{ item }} >/dev/null 2>&1
|
||||
loop: ["talhelper", "talosctl"]
|
||||
changed_when: false
|
||||
check_mode: false
|
||||
register: result
|
||||
failed_when: result.rc != 0 and result.rc != 127
|
||||
Reference in new issue
Block a user