Skip to content

Commit

Permalink
Merge branch 'main' into fix/nfs-secure
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb authored Feb 28, 2025
2 parents 513951a + e040631 commit e1a79fc
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions ansible/roles/k3s/tasks/server-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
delay: 10
until: not _k3s_connected_nodes.failed

- name: Generate new bootstrap token if not all agents are connected
no_log: true
when: _k3s_connected_nodes.stdout_lines | length != groups['k3s'] | length
shell:
cmd: "k3s token create --ttl {{ k3s_bootstrap_token_expiry }}"
register: _k3s_token_output
- when: _k3s_connected_nodes.stdout_lines | length != groups['k3s'] | length
block:
- name: Generate new bootstrap token if not all agents are connected
no_log: true
shell:
cmd: "k3s token create --ttl {{ k3s_bootstrap_token_expiry }}"
register: _k3s_token_output

- name: Set bootstrap token as fact
set_fact:
k3s_bootstrap_token: "{{ _k3s_token_output.stdout }}"
- name: Set bootstrap token as fact
set_fact:
k3s_bootstrap_token: "{{ _k3s_token_output.stdout }}"

0 comments on commit e1a79fc

Please sign in to comment.