]> git.immae.eu Git - github/fretlink/ansible-clever.git/commitdiff
Inline `clever scale --build-flavor` command
authorClement Delafargue <clement.delafargue@fretlink.com>
Fri, 19 Jun 2020 10:09:22 +0000 (12:09 +0200)
committerClement Delafargue <clement.delafargue@fretlink.com>
Fri, 19 Jun 2020 13:14:54 +0000 (15:14 +0200)
files/clever-set-build-flavor.sh [deleted file]
tasks/deploy.yml
tasks/setup.yml

diff --git a/files/clever-set-build-flavor.sh b/files/clever-set-build-flavor.sh
deleted file mode 100755 (executable)
index 52ad223..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-function setBuildFlavor {
-  clever scale --build-flavor "${BUILD_FLAVOR}"
-}
-
-setBuildFlavor
index 5e0ba0c0ac02dce1f8843bac2bb7ed924f7537fc..ca1e54ae2adaf67605d8e560b03abdc7f2bc5b0e 100644 (file)
 
 - name: Configure Build Instance
   when: clever_build_flavor is defined
-  command: "{{ ansible_env.HOME }}/{{ clever_user_path }}/clever-set-build-flavor.sh"
+  command: "clever scale --build-flavor {{ clever_build_flavor }}"
   args:
     chdir: "{{ clever_app_root }}"
   environment:
-    BUILD_FLAVOR: "{{ clever_build_flavor }}"
     CONFIGURATION_FILE: "{{ clever_login_file }}"
 
 - name: Push Environment
index 3bf7965ed0ce6480106e15f0128048047847f49f..a2d5b900b875d5ae231eb5f030aa4f92375ad1e7 100644 (file)
@@ -29,4 +29,3 @@
   with_items:
     - clever-set-domain.sh
     - clever-set-drain.sh
-    - clever-set-build-flavor.sh