From b8ae38bab8c3caaad77028fac1f00bdef9dda2b2 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Wed, 21 Jun 2023 17:36:51 +0200 Subject: [PATCH] Check loclhost instead of external in case firewalls block external connections --- kubernetes/tasks/install/server/install_k3s.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/tasks/install/server/install_k3s.yml b/kubernetes/tasks/install/server/install_k3s.yml index 5454e48..0e606da 100644 --- a/kubernetes/tasks/install/server/install_k3s.yml +++ b/kubernetes/tasks/install/server/install_k3s.yml @@ -12,7 +12,7 @@ - name: Waiting for K3s-server to accept connections ansible.builtin.wait_for: - host: "{{ inventory_hostname }}" + host: "127.0.0.1" port: 6443 state: started when: "inventory_hostname == groups['kubernetes'][0]" @@ -34,7 +34,7 @@ - name: Waiting for K3s-server to accept connections on other nodes ansible.builtin.wait_for: - host: "{{ inventory_hostname }}" + host: "127.0.0.1" port: 6443 state: started when: "inventory_hostname != groups['kubernetes'][0]"