Factor kubectl_apply_stdin into separate "vars only" role

This is needed to make it available to other roles than kubernetes-apps
This commit is contained in:
Max Gautier
2025-11-04 12:08:42 +01:00
parent 0d6d3f5828
commit e090c9ee26
3 changed files with 2 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
---
_kubectl_apply_stdin:
- "{{ kubectl }}"
- apply
- -f
- "-"
- -n
- "{{ k8s_namespace }}"
- --server-side="{{ server_side_apply | lower }}"
# TODO: switch to default SSA
server_side_apply: false
kubectl_apply_stdin: "{{ _kubectl_apply_stdin | join(' ') }}"