aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/deploy.yml
diff options
context:
space:
mode:
authorFrédéric Menou <frederic.menou@fretlink.com>2018-03-30 16:38:27 +0200
committerFrédéric Menou <frederic.menou@fretlink.com>2018-03-30 17:07:18 +0200
commitd7d8a988fe5640c5ffa01e1e690516cd201665a5 (patch)
treefbf126bef733eb797bb2b1b433ad7f924fc80cb0 /tasks/deploy.yml
parentcefea119eddcf7eefeb177d13fb11b3e9ea4f14c (diff)
downloadansible-clever-d7d8a988fe5640c5ffa01e1e690516cd201665a5.tar.gz
ansible-clever-d7d8a988fe5640c5ffa01e1e690516cd201665a5.tar.zst
ansible-clever-d7d8a988fe5640c5ffa01e1e690516cd201665a5.zip
Watch and wait for Clever
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