This commit is contained in:
DeveloperDurp 2026-02-06 05:15:41 -06:00
parent dff9d8f725
commit 7619911e35
17 changed files with 2339 additions and 0 deletions

View file

@ -0,0 +1,12 @@
---
ansible_user: root
server_init_args: >-
{% if groups['master'] | length > 1 %}
{% if ansible_hostname == hostvars[groups['master'][0]]['ansible_hostname'] %}
--cluster-init
{% else %}
--server https://{{ hostvars[groups['master'][0]].k3s_node_ip }}:6443
{% endif %}
--token {{ k3s_token }}
{% endif %}
{{ extra_server_args | default('') }}