fix variable bug

This commit is contained in:
Arsenii Petrovich 2019-07-04 17:07:10 +03:00 committed by Victor Baranov
parent 3110fd8b29
commit 60433fb935
1 changed files with 7 additions and 4 deletions

View File

@ -79,11 +79,10 @@
- name: Make config variables lowercase - name: Make config variables lowercase
set_fact: set_fact:
lower_env: "{{ lower_env | combine ({item.key|lower : item.value}) }}" lower_env: "{{ lower_env | combine ({item.key|lower : item.value}) }}"
with_dict: "{{ custom_environment_chain }}" with_dict: "{{ env_vars }}"
when: custom_environment_chain|length > 0 when: env_vars|length > 0
vars: vars:
lower_env: {} lower_env: {}
custom_environment_chain: "{{ env_vars | default({}) if env_vars>0 else {} }}"
tags: tags:
- update_vars - update_vars
- build - build
@ -123,6 +122,10 @@
tags: tags:
- build - build
- name: Show Server environment variables
debug:
var: server_env
- name: Compile BlockScout - name: Compile BlockScout
command: "mix do {{ item }}" command: "mix do {{ item }}"
args: args: