diff options
author | Clement Delafargue <clement.delafargue@fretlink.com> | 2020-07-01 11:49:27 +0200 |
---|---|---|
committer | Clement Delafargue <clement.delafargue@fretlink.com> | 2020-07-02 11:44:09 +0200 |
commit | 3d3287e0767d13b0a81e5936ce9376d58f42e34c (patch) | |
tree | a9e2e081805d89fa1b924d6b2f85be342fd0cc54 | |
parent | 24a153433105ce2b20b31201ecfb966817c7a66e (diff) | |
download | ansible-clever-3d3287e0767d13b0a81e5936ce9376d58f42e34c.tar.gz ansible-clever-3d3287e0767d13b0a81e5936ce9376d58f42e34c.tar.zst ansible-clever-3d3287e0767d13b0a81e5936ce9376d58f42e34c.zip |
Remove compatibility code for now-unsupported clever-tools versions
-rw-r--r-- | tasks/addon.yml | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/tasks/addon.yml b/tasks/addon.yml index 328664d..1ee8eff 100644 --- a/tasks/addon.yml +++ b/tasks/addon.yml | |||
@@ -1,18 +1,4 @@ | |||
1 | - name: Gather addon information for {{ addon.name }} (clever --version < 1.5.0) | 1 | - name: Gather addon information for {{ addon.name }} |
2 | shell: > | ||
3 | set -o pipefail && | ||
4 | clever env | grep {{ addon.env_prefix }} | ||
5 | | sed -e 's/{{ addon.env_prefix }}_//' -e 's/=/: \"/' -e 's/$/\"/' | ||
6 | > {{ clever_app_confdir }}/{{ addon.name }}_env.yml | ||
7 | args: | ||
8 | chdir: "{{ clever_app_root }}" | ||
9 | executable: "bash" | ||
10 | environment: | ||
11 | CONFIGURATION_FILE: "{{ clever_login_file }}" | ||
12 | changed_when: False | ||
13 | when: clever_returned_version.stdout is version('1.5.0', '<') | ||
14 | |||
15 | - name: Gather addon information for {{ addon.name }} (clever --version >= 1.5.0) | ||
16 | shell: > | 2 | shell: > |
17 | set -o pipefail && | 3 | set -o pipefail && |
18 | clever env | grep {{ addon.env_prefix }} | 4 | clever env | grep {{ addon.env_prefix }} |
@@ -24,7 +10,6 @@ | |||
24 | environment: | 10 | environment: |
25 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 11 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
26 | changed_when: False | 12 | changed_when: False |
27 | when: clever_returned_version.stdout is version('1.5.0', '>=') | ||
28 | 13 | ||
29 | - name: Include addon var for {{ addon.name }} | 14 | - name: Include addon var for {{ addon.name }} |
30 | include_vars: | 15 | include_vars: |