mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-10 07:23:30 +01:00
fix(systemd): templating error for environment vars
This commit is contained in:
parent
191d51bce6
commit
59f0a2152e
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ After={{ after_unit }}
|
|||
[Service]
|
||||
Type={{ 'notify' if k3s_control_node else 'exec' }}
|
||||
{% if k3s_service_env_vars is defined and k3s_service_env_vars is iterable %}
|
||||
{% for env_var, env_value in k3s_service_env_vars %}
|
||||
Environent={{ env_var }}={{ env_value }}
|
||||
{% for env_var in k3s_service_env_vars %}
|
||||
Environent={{ env_var }}={{ k3s_service_env_vars[env_var] }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if k3s_service_env_file is defined and k3s_service_env_file %}
|
||||
|
|
Loading…
Reference in a new issue