From ac9ad8d780ae4c8f31b69b986b4c295e11cbfa13 Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Thu, 9 Apr 2020 18:50:22 +0200 Subject: environment: re-order projet env & addon env By fetching addon environment variables before setting the current project env variables we allow the project variables to _read_ its addons' variables. This can be helpful when you don't control the name of the environment variables your project is using (and thus want to do a mapping between the addons variable name exposed by clever to a variable name your project can understand). --- tasks/environment.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tasks/environment.yml b/tasks/environment.yml index 1508ad4..5acc0ce 100644 --- a/tasks/environment.yml +++ b/tasks/environment.yml @@ -1,11 +1,11 @@ -- name: Create environment file - template: - src: env.j2 - dest: "{{ clever_app_confdir }}/env" - no_log: true - - name: Create addons variable file include_tasks: addon.yml vars: addon: "{{ item }}" with_items: "{{ clever_addons }}" + +- name: Create environment file + template: + src: env.j2 + dest: "{{ clever_app_confdir }}/env" + no_log: true -- cgit v1.2.3