aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2020-04-09 18:50:22 +0200
committerPaul Bonaud <paul.bonaud@fretlink.com>2020-04-09 18:52:34 +0200
commitac9ad8d780ae4c8f31b69b986b4c295e11cbfa13 (patch)
tree1ade390bb9f25e421dc3319c586cf6fae310ae78
parent5816bb884149309b6cfcf438feab7265a14d4c0b (diff)
downloadansible-clever-ac9ad8d780ae4c8f31b69b986b4c295e11cbfa13.tar.gz
ansible-clever-ac9ad8d780ae4c8f31b69b986b4c295e11cbfa13.tar.zst
ansible-clever-ac9ad8d780ae4c8f31b69b986b4c295e11cbfa13.zip
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).
-rw-r--r--tasks/environment.yml12
1 files 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 @@
1- name: Create environment file
2 template:
3 src: env.j2
4 dest: "{{ clever_app_confdir }}/env"
5 no_log: true
6
7- name: Create addons variable file 1- name: Create addons variable file
8 include_tasks: addon.yml 2 include_tasks: addon.yml
9 vars: 3 vars:
10 addon: "{{ item }}" 4 addon: "{{ item }}"
11 with_items: "{{ clever_addons }}" 5 with_items: "{{ clever_addons }}"
6
7- name: Create environment file
8 template:
9 src: env.j2
10 dest: "{{ clever_app_confdir }}/env"
11 no_log: true