Deduplicate kubeadm_patches tasks

kubernetes/control-plane and kubernetes/kubeadm roles both push kubeadm
patches in the same way.
Extract that code and make it a dependency of both.
This is safe because it's only configuration for kubeadm, which only
takes effect when kubeadm is run.
This commit is contained in:
Max Gautier
2024-09-10 13:43:02 +02:00
parent d54cfba6c2
commit a8b66fd207
5 changed files with 19 additions and 30 deletions

View File

@@ -1,5 +1,6 @@
---
dependencies:
- role: kubernetes/kubeadm_common
- role: kubernetes/tokens
when: kube_token_auth
tags: