aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/main.yml
diff options
context:
space:
mode:
authorPaul Bonaud <paul.bonaud@fretlink.com>2020-06-22 18:34:38 +0200
committerPaul Bonaud <paul.bonaud@fretlink.com>2020-06-23 10:52:37 +0200
commitab73076c017bfc8abbe62e617292ef7232b630f1 (patch)
treec0fbd00645140c6318d03e127773b4ec067c7f9e /tasks/main.yml
parent44af02cef61e043b971f03aa5cec5a4caa6d6875 (diff)
downloadansible-clever-ab73076c017bfc8abbe62e617292ef7232b630f1.tar.gz
ansible-clever-ab73076c017bfc8abbe62e617292ef7232b630f1.tar.zst
ansible-clever-ab73076c017bfc8abbe62e617292ef7232b630f1.zip
feature: add a new 'clever_restart_only' flag to restart an app
This new flag will perform a restart on the target clever cloud application instead of deploying it.
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 3c59c90..002dc9c 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -24,13 +24,22 @@
24 24
25- name: Deploy app 25- name: Deploy app
26 import_tasks: deploy.yml 26 import_tasks: deploy.yml
27 when: not clever_restart_only is defined or not clever_restart_only
27 tags: 28 tags:
28 - clever 29 - clever
29 - clever-deploy 30 - clever-deploy
30 31
31- name: Post deploy tasks 32- name: Post deploy tasks
32 import_tasks: post_deploy.yml 33 import_tasks: post_deploy.yml
34 when: not clever_restart_only is defined or not clever_restart_only
33 tags: 35 tags:
34 - clever 36 - clever
35 - clever-deploy 37 - clever-deploy
36 - clever-env 38 - clever-env
39
40- name: Restart app
41 import_tasks: restart.yml
42 when: clever_restart_only is defined and clever_restart_only
43 tags:
44 - clever
45 - clever-restart