From e9212fded1feed54e264f27388772abf2435c5de Mon Sep 17 00:00:00 2001 From: shenlan Date: Wed, 25 Jun 2025 23:07:35 +0800 Subject: [PATCH] fix gpu-k8s role ip resolution --- playbooks/roles/vhosts/gpu-k8s/tasks/install_cluster.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/roles/vhosts/gpu-k8s/tasks/install_cluster.yml b/playbooks/roles/vhosts/gpu-k8s/tasks/install_cluster.yml index 33d8cb7..3c105ad 100644 --- a/playbooks/roles/vhosts/gpu-k8s/tasks/install_cluster.yml +++ b/playbooks/roles/vhosts/gpu-k8s/tasks/install_cluster.yml @@ -20,6 +20,10 @@ {{ (node_ips | default([])) | length > 0 | ternary(node_ips, nodes | default([]) | map('extract', hostvars, 'ansible_host') | list) }} + delegate_to: "{{ ops_host | default(masters | default(master_ips) | first) }}" + delegate_facts: true + run_once: true + become: false - name: Install sealos CLI