mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2026-10-23 03:22:03 +02:00
fix: wait for control plane to be ready before agents join
Signed-off-by: Jon S. Stumpf <jon.stumpf@gmail.com>
This commit is contained in:
1 parent
77b49f76ce
commit
6fcd4d3748
1 file changed
+8
@@ -320,6 +320,14 @@
|
||||
delay: 10
|
||||
changed_when: false
|
||||
|
||||
- name: Wait for control plane to be ready
|
||||
ansible.builtin.wait_for:
|
||||
host: "{{ api_endpoint }}"
|
||||
port: "{{ api_port }}"
|
||||
timeout: 60
|
||||
run_once: true
|
||||
changed_when: false
|
||||
|
||||
- name: Setup kubectl for user
|
||||
when: user_kubectl
|
||||
block:
|
||||
|
||||
Reference in new issue
Block a user