Skip to content

Commit

Permalink
Ansible: IPv6 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
samip5 committed Jul 17, 2023
1 parent 6c8b9a4 commit 370358b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

k3s_control_node: true
k3s_server:
{% if ipv6_enabled %}
node-ip: "{% raw %}{{ ansible_host }},{{ ansible_default_ipv6.address }}{% endraw %}"
{% else %}
node-ip: "{% raw %}{{ ansible_host }}{% endraw %}"
{% endif %}
tls-san:
- "{% raw %}{{ kube_vip_addr }}{% endraw %}"
docker: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@

k3s_control_node: false
k3s_agent:
{% if ipv6_enabled %}
node-ip: "{% raw %}{{ ansible_host }},{{ ansible_default_ipv6.address }}{% endraw %}"
{% else %}
node-ip: "{% raw %}{{ ansible_host }}{% endraw %}"
{% endif %}

0 comments on commit 370358b

Please sign in to comment.