fix(k3s-server): build delegated join arguments

- Preserve explicit per-host server initialization overrides\n- Build default join arguments from the delegated host variables\n- Keep initialization commands out of normal task output
This commit is contained in:
Timothy Stewart
2026-07-31 17:36:32 -05:00
committed by Techno Tim
parent 94dbffaef7
commit 1402f33108
2 changed files with 12 additions and 1 deletions
+1
View File
@@ -38,6 +38,7 @@
ansible.builtin.command:
cmd: systemd-run -p RestartSec=2 -p Restart=on-failure --unit=k3s-init k3s server {{ server_init_args }}
creates: "{{ systemd_dir }}/k3s-init.service"
no_log: true
when: ansible_hostname == hostvars[groups[group_name_master | default('master')][0]]['ansible_hostname']
- name: Wait for the first master Kubernetes API before joining other masters