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 :
54
57
ansible.builtin.command :
55
58
chdir : " {{ ansible_user_dir }}"
56
59
cmd : " docker compose up -d"
60
+ register : output
61
+ changed_when : output.rc != 0
62
+ failed_when : output.rc != 0
57
63
58
64
- name : Migrate on prod
59
65
ansible.builtin.command :
60
66
chdir : " {{ ansible_user_dir }}"
61
67
cmd : " /usr/bin/make prod/migrate"
68
+ register : output
69
+ changed_when : output.rc != 0
70
+ failed_when : output.rc != 0
62
71
63
72
- name : Restart everything and finish
64
73
ansible.builtin.command :
65
74
chdir : " {{ ansible_user_dir }}"
66
75
cmd : " docker compose up -d"
76
+ register : output
77
+ changed_when : output.rc != 0
78
+ failed_when : output.rc != 0
You can’t perform that action at this time.
0 commit comments