]> git.immae.eu Git - github/fretlink/ansible-clever.git/blame - tasks/redeploy.yml
Bump clever waiting time to 1 hour
[github/fretlink/ansible-clever.git] / tasks / redeploy.yml
CommitLineData
b89d0540
PB
1---
2##################################################################
3# Re-deploy only if its the first clever deploy for that project #
4##################################################################
5
6- name: First time push to Clever-Cloud needs a full git clone
7 command: "git fetch --unshallow"
8 args:
9 chdir: "{{ clever_app_root }}"
10 tags:
11 - skip_ansible_lint
12
13- name: Deploy to Clever-Cloud
14 shell: "clever deploy --force"
15 args:
16 chdir: "{{ clever_app_root }}"
17 environment:
18 CONFIGURATION_FILE: "{{ clever_login_file }}"
32a91c16 19 async: 3600 # 1 hour
b89d0540
PB
20 poll: 0
21 ignore_errors: true
22 register: clever_deploy
23 tags:
24 - skip_ansible_lint
25
32a91c16 26- name: Wait up to 1 hour for deployment completion
b89d0540
PB
27 async_status:
28 jid: "{{ clever_deploy.ansible_job_id }}"
29 register: job_result
30 until: job_result.finished
31 ignore_errors: true
32 delay: 30
32a91c16 33 retries: 120 # 1 hour (120 * 30 secs delay)