fix(ovs): delegate tasks to controller
diff --git a/roles/openvswitch/tasks/main.yml b/roles/openvswitch/tasks/main.yml
index 9b3b1d5..d8e68bf 100644
--- a/roles/openvswitch/tasks/main.yml
+++ b/roles/openvswitch/tasks/main.yml
@@ -29,6 +29,7 @@
- name: Uninstall the legacy HelmRelease
run_once: true
+ delegate_to: "{{ groups['controllers'][0] }}"
block:
- name: Suspend the existing HelmRelease
kubernetes.core.k8s:
@@ -51,6 +52,7 @@
- name: Deploy Helm chart
run_once: true
+ delegate_to: "{{ groups['controllers'][0] }}"
kubernetes.core.helm:
name: "{{ openvswitch_helm_release_name }}"
chart_ref: "{{ openvswitch_helm_chart_ref }}"