mirror of
https://github.com/PyratLabs/ansible-role-k3s.git
synced 2025-01-22 21:31:21 +01:00
implement k3s_tls_san iterable in systemd service
keeps support for non-array values
This commit is contained in:
parent
f39f228f39
commit
6cf09c8efa
@ -142,8 +142,14 @@ ExecStart={{ k3s_install_dir }}/k3s
|
||||
{% if k3s_resolv_conf is defined and k3s_resolv_conf %}
|
||||
--resolv-conf {{ k3s_resolv_conf }}
|
||||
{% endif %}
|
||||
{% if k3s_tls_san is defined and k3s_tls_san %}
|
||||
--tls-san {{ k3s_tls_san }}
|
||||
{% if k3s_tls_san is defined and k3s_tls_san is iterable %}
|
||||
{% for san in k3s_tls_san %}
|
||||
--tls-san {{ san }}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% if k3s_tls_san is defined and k3s_tls_san %}
|
||||
--tls-san {{ k3s_tls_san }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if k3s_node_data_dir is defined %}
|
||||
--data-dir {{ k3s_node_data_dir }}
|
||||
|
Loading…
Reference in New Issue
Block a user