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 authored and Techno Tim committed 2026-08-01 12:27:12 -05:00
1 parent 94dbffaef7
commit 1402f33108
2 files changed
+12 -1

No files matched your search

+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