aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorClement Delafargue <clement.delafargue@fretlink.com>2019-10-08 14:46:25 +0200
committerClement Delafargue <clement.delafargue@fretlink.com>2020-06-19 15:14:54 +0200
commit1c1393659bb8adb3273e2434725ae1664287a1c9 (patch)
treea990eea62add9c2aec31147806793a775c273b9f /tasks
parent18c278e2d8f19fe1066908bd6bc631bdb8472333 (diff)
downloadansible-clever-1c1393659bb8adb3273e2434725ae1664287a1c9.tar.gz
ansible-clever-1c1393659bb8adb3273e2434725ae1664287a1c9.tar.zst
ansible-clever-1c1393659bb8adb3273e2434725ae1664287a1c9.zip
Add optional build flavor configuration
Diffstat (limited to 'tasks')
-rw-r--r--tasks/deploy.yml9
-rw-r--r--tasks/setup.yml1
2 files changed, 10 insertions, 0 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml
index 751d78f..5e0ba0c 100644
--- a/tasks/deploy.yml
+++ b/tasks/deploy.yml
@@ -16,6 +16,15 @@
16 DOMAIN: "{{ clever_domain | default(domain) }}" 16 DOMAIN: "{{ clever_domain | default(domain) }}"
17 CONFIGURATION_FILE: "{{ clever_login_file }}" 17 CONFIGURATION_FILE: "{{ clever_login_file }}"
18 18
19- name: Configure Build Instance
20 when: clever_build_flavor is defined
21 command: "{{ ansible_env.HOME }}/{{ clever_user_path }}/clever-set-build-flavor.sh"
22 args:
23 chdir: "{{ clever_app_root }}"
24 environment:
25 BUILD_FLAVOR: "{{ clever_build_flavor }}"
26 CONFIGURATION_FILE: "{{ clever_login_file }}"
27
19- name: Push Environment 28- name: Push Environment
20 shell: "clever env import --json < {{ clever_app_confdir }}/env" 29 shell: "clever env import --json < {{ clever_app_confdir }}/env"
21 args: 30 args:
diff --git a/tasks/setup.yml b/tasks/setup.yml
index a2d5b90..3bf7965 100644
--- a/tasks/setup.yml
+++ b/tasks/setup.yml
@@ -29,3 +29,4 @@
29 with_items: 29 with_items:
30 - clever-set-domain.sh 30 - clever-set-domain.sh
31 - clever-set-drain.sh 31 - clever-set-drain.sh
32 - clever-set-build-flavor.sh