aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/deploy.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/deploy.yml')
-rw-r--r--tasks/deploy.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml
index b394e55..a2dea71 100644
--- a/tasks/deploy.yml
+++ b/tasks/deploy.yml
@@ -1,6 +1,6 @@
1- name: Configure Drain 1- name: Configure Drain
2 when: syslog_server is defined or clever_syslog_server is defined 2 when: syslog_server is defined or clever_syslog_server is defined
3 command: clever-set-drain.sh 3 command: "{{ ansible_env.HOME }}/{{ clever_user_path }}clever-set-drain.sh"
4 args: 4 args:
5 chdir: "{{ clever_app_root }}" 5 chdir: "{{ clever_app_root }}"
6 environment: 6 environment:
@@ -9,7 +9,7 @@
9 9
10- name: Configure Domain 10- name: Configure Domain
11 when: domain is defined or clever_domain is defined 11 when: domain is defined or clever_domain is defined
12 command: clever-set-domain.sh 12 command: "{{ ansible_env.HOME }}/{{ clever_user_path }}/clever-set-domain.sh"
13 args: 13 args:
14 chdir: "{{ clever_app_root }}" 14 chdir: "{{ clever_app_root }}"
15 environment: 15 environment:
@@ -80,7 +80,8 @@
80 - clever_deploy is failed 80 - clever_deploy is failed
81 - clever_deploy.stderr is defined 81 - clever_deploy.stderr is defined
82 82
83- shell: clever activity 83- name: Retrieve clever activity
84 command: clever activity
84 args: 85 args:
85 chdir: "{{ clever_app_root }}" 86 chdir: "{{ clever_app_root }}"
86 environment: 87 environment:
@@ -88,12 +89,15 @@
88 changed_when: false 89 changed_when: false
89 register: clever_activity_result 90 register: clever_activity_result
90 91
91- debug: 92- name: Display clever activity
93 debug:
92 var: clever_activity_result.stdout_lines 94 var: clever_activity_result.stdout_lines
93 95
94- shell: git show -q --format=format:%H HEAD 96- name: Get current commit sha
97 command: git show -q --format=format:%H HEAD
95 args: 98 args:
96 chdir: "{{ clever_app_root }}" 99 chdir: "{{ clever_app_root }}"
100 warn: False
97 changed_when: false 101 changed_when: false
98 register: current_commit_sha 102 register: current_commit_sha
99 103