blob: 328664d087461e8baf4adaebde01971798315872 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
- name: Gather addon information for {{ addon.name }} (clever --version < 1.5.0)
shell: >
set -o pipefail &&
clever env | grep {{ addon.env_prefix }}
| sed -e 's/{{ addon.env_prefix }}_//' -e 's/=/: \"/' -e 's/$/\"/'
> {{ clever_app_confdir }}/{{ addon.name }}_env.yml
args:
chdir: "{{ clever_app_root }}"
executable: "bash"
environment:
CONFIGURATION_FILE: "{{ clever_login_file }}"
changed_when: False
when: clever_returned_version.stdout is version('1.5.0', '<')
- name: Gather addon information for {{ addon.name }} (clever --version >= 1.5.0)
shell: >
set -o pipefail &&
clever env | grep {{ addon.env_prefix }}
| sed -e 's/{{ addon.env_prefix }}_//' -e 's/=/: /'
> {{ clever_app_confdir }}/{{ addon.name }}_env.yml
args:
chdir: "{{ clever_app_root }}"
executable: "bash"
environment:
CONFIGURATION_FILE: "{{ clever_login_file }}"
changed_when: False
when: clever_returned_version.stdout is version('1.5.0', '>=')
- name: Include addon var for {{ addon.name }}
include_vars:
file: "{{ clever_app_confdir }}/{{ addon.name }}_env.yml"
name: "{{ addon.name }}"
|