aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorClement Delafargue <clement.delafargue@fretlink.com>2020-06-19 12:09:22 +0200
committerClement Delafargue <clement.delafargue@fretlink.com>2020-06-19 15:14:54 +0200
commitb1536bd484c818e8b3e26c271d35306882ef9956 (patch)
tree86df4428597d8a3fad73bba01601e5abbc69c50d
parent1c1393659bb8adb3273e2434725ae1664287a1c9 (diff)
downloadansible-clever-b1536bd484c818e8b3e26c271d35306882ef9956.tar.gz
ansible-clever-b1536bd484c818e8b3e26c271d35306882ef9956.tar.zst
ansible-clever-b1536bd484c818e8b3e26c271d35306882ef9956.zip
Inline `clever scale --build-flavor` command
-rwxr-xr-xfiles/clever-set-build-flavor.sh9
-rw-r--r--tasks/deploy.yml3
-rw-r--r--tasks/setup.yml1
3 files changed, 1 insertions, 12 deletions
diff --git a/files/clever-set-build-flavor.sh b/files/clever-set-build-flavor.sh
deleted file mode 100755
index 52ad223..0000000
--- a/files/clever-set-build-flavor.sh
+++ /dev/null
@@ -1,9 +0,0 @@
1#!/usr/bin/env bash
2
3set -e
4
5function setBuildFlavor {
6 clever scale --build-flavor "${BUILD_FLAVOR}"
7}
8
9setBuildFlavor
diff --git a/tasks/deploy.yml b/tasks/deploy.yml
index 5e0ba0c..ca1e54a 100644
--- a/tasks/deploy.yml
+++ b/tasks/deploy.yml
@@ -18,11 +18,10 @@
18 18
19- name: Configure Build Instance 19- name: Configure Build Instance
20 when: clever_build_flavor is defined 20 when: clever_build_flavor is defined
21 command: "{{ ansible_env.HOME }}/{{ clever_user_path }}/clever-set-build-flavor.sh" 21 command: "clever scale --build-flavor {{ clever_build_flavor }}"
22 args: 22 args:
23 chdir: "{{ clever_app_root }}" 23 chdir: "{{ clever_app_root }}"
24 environment: 24 environment:
25 BUILD_FLAVOR: "{{ clever_build_flavor }}"
26 CONFIGURATION_FILE: "{{ clever_login_file }}" 25 CONFIGURATION_FILE: "{{ clever_login_file }}"
27 26
28- name: Push Environment 27- name: Push Environment
diff --git a/tasks/setup.yml b/tasks/setup.yml
index 3bf7965..a2d5b90 100644
--- a/tasks/setup.yml
+++ b/tasks/setup.yml
@@ -29,4 +29,3 @@
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