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 committed 2026-07-31 17:36:32 -05:00
1 parent 20ca861d71
commit fdedaa906e
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