File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 2222 delay : 10
2323 until : not _k3s_connected_nodes.failed
2424
25- - name : Generate new bootstrap token if not all agents are connected
26- no_log : true
27- when : _k3s_connected_nodes.stdout_lines | length != groups['k3s'] | length
28- shell :
29- cmd : " k3s token create --ttl {{ k3s_bootstrap_token_expiry }}"
30- register : _k3s_token_output
25+ - when : _k3s_connected_nodes.stdout_lines | length != groups['k3s'] | length
26+ block :
27+ - name : Generate new bootstrap token if not all agents are connected
28+ no_log : true
29+ shell :
30+ cmd : " k3s token create --ttl {{ k3s_bootstrap_token_expiry }}"
31+ register : _k3s_token_output
3132
32- - name : Set bootstrap token as fact
33- set_fact :
34- k3s_bootstrap_token : " {{ _k3s_token_output.stdout }}"
33+ - name : Set bootstrap token as fact
34+ set_fact :
35+ k3s_bootstrap_token : " {{ _k3s_token_output.stdout }}"
You can’t perform that action at this time.
0 commit comments