Convert dashboard to kubectl_apply_stdin

This commit is contained in:
Max Gautier
2024-12-09 10:10:50 +01:00
parent 990d2a1358
commit 27ccfc7c66
3 changed files with 13 additions and 40 deletions
+7 -1
View File
@@ -67,7 +67,13 @@
- netchecker
- name: Kubernetes Apps | Dashboard
import_tasks: dashboard.yml
command:
cmd: "{{ kubectl_apply_stdin }}"
stdin: "{{ lookup('template', 'dashboard.yml.j2') }}"
delegate_to: "{{ groups['kube_control_plane'][0] }}"
run_once: true
vars:
namespace: "{{ dashboard_namespace }}"
when: dashboard_enabled
tags:
- dashboard