fix(systemd): templating error for environment vars

This commit is contained in:
Xan Manning 2021-12-20 21:34:15 +00:00 committed by Curtis John
parent e983629167
commit 20468734a0

View File

@ -19,8 +19,8 @@ After={{ after_unit }}
[Service] [Service]
Type={{ 'notify' if k3s_control_node else 'exec' }} Type={{ 'notify' if k3s_control_node else 'exec' }}
{% if k3s_service_env_vars is defined and k3s_service_env_vars is iterable %} {% if k3s_service_env_vars is defined and k3s_service_env_vars is iterable %}
{% for env_var, env_value in k3s_service_env_vars %} {% for env_var in k3s_service_env_vars %}
Environent={{ env_var }}={{ env_value }} Environent={{ env_var }}={{ k3s_service_env_vars[env_var] }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if k3s_service_env_file is defined and k3s_service_env_file %} {% if k3s_service_env_file is defined and k3s_service_env_file %}