aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorClément Delafargue <39330590+clementd-fretlink@users.noreply.github.com>2020-06-19 11:42:50 +0200
committerGitHub <noreply@github.com>2020-06-19 11:42:50 +0200
commit18c278e2d8f19fe1066908bd6bc631bdb8472333 (patch)
tree9aea4bc0fbeec80e6e72fcf038fa30873bb2d3cb /templates
parentd5c5bf88290ffb2fbb7835dcfb9c645563cdd3e6 (diff)
parentd5b5cb172cd488883e2eac0395dbe4d34ddd7a44 (diff)
downloadansible-clever-18c278e2d8f19fe1066908bd6bc631bdb8472333.tar.gz
ansible-clever-18c278e2d8f19fe1066908bd6bc631bdb8472333.tar.zst
ansible-clever-18c278e2d8f19fe1066908bd6bc631bdb8472333.zip
Merge pull request #64 from clementd-fretlink/json-env
Use JSON import for environment variables
Diffstat (limited to 'templates')
-rw-r--r--templates/env.j212
1 files changed, 3 insertions, 9 deletions
diff --git a/templates/env.j2 b/templates/env.j2
index 30bda82..59f3050 100644
--- a/templates/env.j2
+++ b/templates/env.j2
@@ -1,9 +1,3 @@
1{% for key, value in (clever_base_env | combine(clever_env)).items() %} 1{# dict2items is not enough here, all the values have to be stringified #}
2{{ key }}={{ value | to_json }} 2{# git-blame this line for more explanations #}
3{% endfor %} 3{{ clever_env | json_env_map | to_json }}
4
5{%- if clever_haskell_entry_point %}
6{# Haskell only #}
7{# https://www.clever-cloud.com/doc/get-help/reference-environment-variables/#haskell #}
8CC_RUN_COMMAND={{'~/.local/bin/' + clever_haskell_entry_point | to_json }}
9{% endif %}