Skip to content

Commit bd71974

Browse files
wtripp180901sjpb
andauthored
comment suggestions
Co-authored-by: Steve Brasier <[email protected]>
1 parent 3508ebd commit bd71974

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ansible/roles/k3s/tasks/server-runtime.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
enabled: true
1515

1616
# Possible race here as there is a delay between agents disconnecting and being registered as down, probably won't be hit in general use though
17-
- name: Check if k3s agents are connected
17+
- name: Check which k3s agents are connected
1818
ansible.builtin.shell:
1919
cmd: kubectl get nodes --no-headers | grep -w Ready
2020
register: _k3s_connected_nodes
21-
retries: 6 # there may be a delay before the server reconnects to itself
21+
retries: 6 # task may fail if server is not ready yet
2222
delay: 10
2323
until: not _k3s_connected_nodes.failed
2424

25-
- name: Generate new bootstrap token
25+
- name: Generate new bootstrap token if not all agents are connected
2626
no_log: true
2727
when: _k3s_connected_nodes.stdout_lines | length != groups['k3s'] | length
2828
shell:

0 commit comments

Comments
 (0)