forked from tim/k3s-ansible
Fix dual-stack clusters with multiple master nodes (#237)
* Test IPv6 scenario with two master nodes * Fix IPv6 multimaster setup --------- Co-authored-by: Techno Tim <timothystewart6@gmail.com>
This commit is contained in:
1 parent
7bc198ab26
commit
6448948e9f
3 files changed
+20
-2
No files matched your search
@@ -9,7 +9,7 @@ server_init_args: >-
|
||||
{% if ansible_hostname == hostvars[groups['master'][0]]['ansible_hostname'] %}
|
||||
--cluster-init
|
||||
{% else %}
|
||||
--server https://{{ hostvars[groups['master'][0]].k3s_node_ip }}:6443
|
||||
--server https://{{ hostvars[groups['master'][0]].k3s_node_ip | split(",") | first | ansible.utils.ipwrap }}:6443
|
||||
{% endif %}
|
||||
--token {{ k3s_token }}
|
||||
{% endif %}
|
||||
|
||||
Reference in new issue
Block a user