forked from tim/k3s-ansible
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:
committed by
Techno Tim
parent
94dbffaef7
commit
1402f33108
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user