diff --git a/playbooks/roles/vhosts/gpu-k8s/tasks/install_cluster.yml b/playbooks/roles/vhosts/gpu-k8s/tasks/install_cluster.yml index bcceaa3..d1008a9 100644 --- a/playbooks/roles/vhosts/gpu-k8s/tasks/install_cluster.yml +++ b/playbooks/roles/vhosts/gpu-k8s/tasks/install_cluster.yml @@ -72,6 +72,15 @@ fail_msg: "Provide masters/nodes hostnames or master_ips/node_ips with at least one entry" when: inventory_hostname == (ops_host | default(masters | default(master_ips) | first)) +- name: Verify passwordless SSH access to all cluster nodes + shell: ssh -o BatchMode=yes -o StrictHostKeyChecking=no root@{{ item }} hostname + loop: "{{ master_ips + node_ips }}" + delegate_to: "{{ ops_host | default(masters | default(master_ips) | first) }}" + become: false + register: ssh_access + changed_when: false + run_once: true + - name: Run sealos to create Kubernetes cluster shell: | sealos run \