File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 15
15
ansible.builtin.command :
16
16
chdir : /tmp/src
17
17
cmd : " /usr/bin/make docker/build V={{ app_version }}"
18
+ register : output
19
+ changed_when : output.rc != 0
20
+ failed_when : output.rc != 0
18
21
19
22
- name : Create a server Makefile to manage app tasks
20
23
ansible.builtin.template :
49
52
ansible.builtin.command :
50
53
chdir : " {{ ansible_user_dir }}"
51
54
cmd : " docker compose up -d"
55
+ register : output
56
+ changed_when : output.rc != 0
57
+ failed_when : output.rc != 0
52
58
53
59
- name : Migrate on prod
54
60
ansible.builtin.command :
55
61
chdir : " {{ ansible_user_dir }}"
56
62
cmd : " /usr/bin/make prod/migrate"
63
+ register : output
64
+ changed_when : output.rc != 0
65
+ failed_when : output.rc != 0
57
66
58
67
- name : Restart everything and finish
59
68
ansible.builtin.command :
60
69
chdir : " {{ ansible_user_dir }}"
61
70
cmd : " docker compose up -d"
71
+ register : output
72
+ changed_when : output.rc != 0
73
+ failed_when : output.rc != 0
You can’t perform that action at this time.
0 commit comments