aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/deploy.yml
diff options
context:
space:
mode:
authorpaulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com>2020-08-06 16:01:39 +0200
committerGitHub <noreply@github.com>2020-08-06 16:01:39 +0200
commit9a29ce38c3a73e448a1a636888899a9a31229573 (patch)
treef03e1db57031f574657838a8a15c41319b1c18be /tasks/deploy.yml
parent315c7f51af48b54719bd793d9d28a4bb396a926a (diff)
parentc3e2ff5e0f31c61eae330a1a41d7a8a83435d9bd (diff)
downloadansible-clever-9a29ce38c3a73e448a1a636888899a9a31229573.tar.gz
ansible-clever-9a29ce38c3a73e448a1a636888899a9a31229573.tar.zst
ansible-clever-9a29ce38c3a73e448a1a636888899a9a31229573.zip
Merge pull request #75 from paulrbr-fl/clever-restart-when-askedv2.8
deploy: try to restart the app when the CLI asks to do it
Diffstat (limited to 'tasks/deploy.yml')
-rw-r--r--tasks/deploy.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml
index 8dda5e0..39b5845 100644
--- a/tasks/deploy.yml
+++ b/tasks/deploy.yml
@@ -85,6 +85,13 @@
85 - job_result.stderr is defined 85 - job_result.stderr is defined
86 - job_result.stderr is search("Failed to read git object") 86 - job_result.stderr is search("Failed to read git object")
87 87
88- name: Restart app on clever-cloud when error asks to restart
89 include_tasks: restart.yml
90 when:
91 - not job_result.finished or not job_result.rc == 0
92 - job_result.stderr is defined
93 - job_result.stderr is search("clever restart")
94
88- name: Deploy logs (stdout) 95- name: Deploy logs (stdout)
89 debug: 96 debug:
90 var: job_result.stdout_lines 97 var: job_result.stdout_lines