Files
home-cluster/bootstrap/tasks/validation/cli.yaml
T
Devin Buhl b602a7a1f5 fix: update makeninja - rename Archfile - check for k0sctl (#1161)
* fix: update makeninja

* Update Taskfile.yaml

* fix: check for k0sctl when k0s is choosen

Signed-off-by: Devin Buhl <devin@buhl.casa>

---------

Signed-off-by: Devin Buhl <devin@buhl.casa>
2024-01-15 15:39:37 -05:00

20 lines
611 B
YAML

---
- name: Check if required CLI tools are present
ansible.builtin.shell: |
command -v {{ item }} >/dev/null 2>&1
loop: ["age", "cloudflared", "flux", "sops", "jq", "kubeconform", "kustomize"]
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 k0s
when: bootstrap_distribution == "k0s"
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