aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/deploy.yml
diff options
context:
space:
mode:
authorFrédéric Menou <frederic.menou@fretlink.com>2018-03-30 23:48:43 +0200
committerGitHub <noreply@github.com>2018-03-30 23:48:43 +0200
commit3910b408f30bb3b21911a01356fd9994b511990b (patch)
treefbf126bef733eb797bb2b1b433ad7f924fc80cb0 /tasks/deploy.yml
parent7e33cb51e8c911d6f10b226282b7dbc58c13532f (diff)
parentd7d8a988fe5640c5ffa01e1e690516cd201665a5 (diff)
downloadansible-clever-1.1.tar.gz
ansible-clever-1.1.tar.zst
ansible-clever-1.1.zip
Merge pull request #7 from fmenou/better-wait-deployv1.1
Better wait deploy - take #2
Diffstat (limited to 'tasks/deploy.yml')
-rw-r--r--tasks/deploy.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml
index 8b98d8c..54c04ac 100644
--- a/tasks/deploy.yml
+++ b/tasks/deploy.yml
@@ -24,7 +24,19 @@
24- name: Push to Clever-Cloud to trigger deployment 24- name: Push to Clever-Cloud to trigger deployment
25 command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master" 25 command: "git push --force git+ssh://git@push-par-clevercloud-customers.services.clever-cloud.com/{{ clever_app }}.git HEAD:refs/heads/master"
26 26
27- name: Wait until deployment completion 27- name: Watch deployment status
28 command: clever-wait-deploy.sh 28 command: clever-wait-deploy.sh
29 async: 900
30 poll: 0
31 register: long_command
29 environment: 32 environment:
30 CONFIGURATION_FILE: "{{ clever_login_file }}" 33 CONFIGURATION_FILE: "{{ clever_login_file }}"
34
35# Waits up to 15 minutes
36- name: Wait for deployment completion
37 async_status:
38 jid: "{{ long_command.ansible_job_id }}"
39 register: job_result
40 until: job_result.finished
41 delay: 30
42 retries: 30