]> git.immae.eu Git - github/fretlink/ansible-clever.git/commitdiff
fix(deploy): Yet again a missing chdir to execute from app root 27/head
authorPaul Bonaud <paul.bonaud@fretlink.com>
Fri, 30 Nov 2018 15:53:40 +0000 (16:53 +0100)
committerPaul Bonaud <paul.bonaud@fretlink.com>
Fri, 30 Nov 2018 15:54:00 +0000 (16:54 +0100)
files/clever-wait-deploy.sh
tasks/deploy.yml

index e0bbcf1691a1ae0575e035a6593f4656e46972b4..b9110694c6cd9cd4fbf835c7ed32988b1f2ab2e1 100755 (executable)
@@ -48,9 +48,7 @@ function check {
 }
 
 function getHeadRev {
-  local chdir="$1/.git"
-
-  git --git-dir="$chdir" rev-parse HEAD
+  git rev-parse HEAD
 }
 
-check "$(getHeadRev "$@")"
+check "$(getHeadRev)"
index 3bd74ee4b4bea80fc5a577143733844a9961f344..ae7e5f6471320cda444623e836f3daf6423d94b8 100644 (file)
@@ -58,7 +58,9 @@
     - skip_ansible_lint
 
 - name: Watch deployment status
-  command: "clever-wait-deploy.sh '{{ clever_app_root }}'"
+  command: "clever-wait-deploy.sh"
+  args:
+    chdir: "{{ clever_app_root }}"
   async: 900
   poll: 0
   register: long_command