diff options
-rwxr-xr-x | files/clever-wait-deploy.sh | 6 | ||||
-rw-r--r-- | tasks/deploy.yml | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/files/clever-wait-deploy.sh b/files/clever-wait-deploy.sh index e0bbcf1..b911069 100755 --- a/files/clever-wait-deploy.sh +++ b/files/clever-wait-deploy.sh | |||
@@ -48,9 +48,7 @@ function check { | |||
48 | } | 48 | } |
49 | 49 | ||
50 | function getHeadRev { | 50 | function getHeadRev { |
51 | local chdir="$1/.git" | 51 | git rev-parse HEAD |
52 | |||
53 | git --git-dir="$chdir" rev-parse HEAD | ||
54 | } | 52 | } |
55 | 53 | ||
56 | check "$(getHeadRev "$@")" | 54 | check "$(getHeadRev)" |
diff --git a/tasks/deploy.yml b/tasks/deploy.yml index 3bd74ee..ae7e5f6 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml | |||
@@ -58,7 +58,9 @@ | |||
58 | - skip_ansible_lint | 58 | - skip_ansible_lint |
59 | 59 | ||
60 | - name: Watch deployment status | 60 | - name: Watch deployment status |
61 | command: "clever-wait-deploy.sh '{{ clever_app_root }}'" | 61 | command: "clever-wait-deploy.sh" |
62 | args: | ||
63 | chdir: "{{ clever_app_root }}" | ||
62 | async: 900 | 64 | async: 900 |
63 | poll: 0 | 65 | poll: 0 |
64 | register: long_command | 66 | register: long_command |