From d7f2dc82bc6ecc87c1a6f901f75e6de6c15c451b Mon Sep 17 00:00:00 2001 From: patrick hermann <47567770+patrick-hermann-sva@users.noreply.github.com> Date: Sun, 27 Oct 2024 21:51:26 +0100 Subject: [PATCH] Update deploy-k3s.yaml --- tasks/deploy-k3s.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/deploy-k3s.yaml b/tasks/deploy-k3s.yaml index 0d330c3..216c530 100644 --- a/tasks/deploy-k3s.yaml +++ b/tasks/deploy-k3s.yaml @@ -39,8 +39,9 @@ path: "{{ k3s_kubeconfig_path }}" regexp: "127.0.0.1:{{ k8s_api_port }}" line: " server: https://{% for host in groups['initial_master_node'] %}{{ hostvars[host]['ansible_default_ipv4']['address'] }}{% endfor %}:{{ k8s_api_port }}" - delegate_to: initial_master_node - + when: inventory_hostname in groups['initial_master_node'] + ignore_errors: true + - name: Deploy additional nodes ansible.builtin.shell: | curl -sfL {{ k3s_installscript_url }} | sh -s -