Check loclhost instead of external in case firewalls block external connections
This commit is contained in:
		
							parent
							
								
									093612f3a7
								
							
						
					
					
						commit
						b8ae38bab8
					
				@ -12,7 +12,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- name: Waiting for K3s-server to accept connections
 | 
					- name: Waiting for K3s-server to accept connections
 | 
				
			||||||
  ansible.builtin.wait_for:
 | 
					  ansible.builtin.wait_for:
 | 
				
			||||||
    host: "{{ inventory_hostname }}"
 | 
					    host: "127.0.0.1"
 | 
				
			||||||
    port: 6443
 | 
					    port: 6443
 | 
				
			||||||
    state: started
 | 
					    state: started
 | 
				
			||||||
  when: "inventory_hostname == groups['kubernetes'][0]"
 | 
					  when: "inventory_hostname == groups['kubernetes'][0]"
 | 
				
			||||||
@ -34,7 +34,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- name: Waiting for K3s-server to accept connections on other nodes
 | 
					- name: Waiting for K3s-server to accept connections on other nodes
 | 
				
			||||||
  ansible.builtin.wait_for:
 | 
					  ansible.builtin.wait_for:
 | 
				
			||||||
    host: "{{ inventory_hostname }}"
 | 
					    host: "127.0.0.1"
 | 
				
			||||||
    port: 6443
 | 
					    port: 6443
 | 
				
			||||||
    state: started
 | 
					    state: started
 | 
				
			||||||
  when: "inventory_hostname != groups['kubernetes'][0]"
 | 
					  when: "inventory_hostname != groups['kubernetes'][0]"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user