diff options
author | Clément Delafargue <39330590+clementd-fretlink@users.noreply.github.com> | 2020-07-03 15:16:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-03 15:16:54 +0200 |
commit | 315c7f51af48b54719bd793d9d28a4bb396a926a (patch) | |
tree | a9e2e081805d89fa1b924d6b2f85be342fd0cc54 /tasks/service-dep.yml | |
parent | 90634ee04cc1a4ab983de6bf142f25978463bc4a (diff) | |
parent | 3d3287e0767d13b0a81e5936ce9376d58f42e34c (diff) | |
download | ansible-clever-315c7f51af48b54719bd793d9d28a4bb396a926a.tar.gz ansible-clever-315c7f51af48b54719bd793d9d28a4bb396a926a.tar.zst ansible-clever-315c7f51af48b54719bd793d9d28a4bb396a926a.zip |
Merge pull request #74 from clementd-fretlink/service-dependenciesv2.7
Service dependencies
Diffstat (limited to 'tasks/service-dep.yml')
-rw-r--r-- | tasks/service-dep.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tasks/service-dep.yml b/tasks/service-dep.yml new file mode 100644 index 0000000..67621f6 --- /dev/null +++ b/tasks/service-dep.yml | |||
@@ -0,0 +1,17 @@ | |||
1 | - name: Make sure addon {{ service_dep.addon_id }} is linked | ||
2 | shell: > | ||
3 | clever service link-addon {{ service_dep.addon_id }} | ||
4 | args: | ||
5 | chdir: "{{ clever_app_root }}" | ||
6 | environment: | ||
7 | CONFIGURATION_FILE: "{{ clever_login_file }}" | ||
8 | when: service_dep.addon_id is defined | ||
9 | |||
10 | - name: Make sure app {{ service_dep.app_id }} is linked | ||
11 | shell: > | ||
12 | clever service link-app {{ service_dep.app_id }} | ||
13 | args: | ||
14 | chdir: "{{ clever_app_root }}" | ||
15 | environment: | ||
16 | CONFIGURATION_FILE: "{{ clever_login_file }}" | ||
17 | when: service_dep.app_id is defined | ||