From 0c44f1fd544389ae41a91f89b469fa6ad6c821e3 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Tue, 31 Jan 2023 15:23:48 +0100 Subject: [PATCH] Add missing key --- .../ansible_payload/upgrade/roles/metacluster/tasks/storage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/firstboot/files/ansible_payload/upgrade/roles/metacluster/tasks/storage.yml b/ansible/roles/firstboot/files/ansible_payload/upgrade/roles/metacluster/tasks/storage.yml index 14aea36..3e465fd 100644 --- a/ansible/roles/firstboot/files/ansible_payload/upgrade/roles/metacluster/tasks/storage.yml +++ b/ansible/roles/firstboot/files/ansible_payload/upgrade/roles/metacluster/tasks/storage.yml @@ -10,6 +10,7 @@ definition: | spec: numberOfReplicas: {{ lookup('kubernetes.core.k8s', kind='node', kubeconfig=(kubeconfig.path)) | length | int }} + kubeconfig: "{{ kubeconfig.path }}" loop: "{{ lookup('kubernetes.core.k8s', api_version='longhorn.io/v1beta2', kind='volume', namespace='longhorn-system', kubeconfig=(kubeconfig.path)) }}" loop_control: label: "{{ item.metadata.name }}"