Skip to content

Commit e411347

Browse files
committed
fix remaining ansible lint errors
1 parent d7496b5 commit e411347

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

deploy/playbooks/03_app.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
ansible.builtin.command:
1616
chdir: /tmp/src
1717
cmd: "/usr/bin/make docker/build V={{ app_version }}"
18+
register: output
19+
changed_when: output.rc != 0
20+
failed_when: output.rc != 0
1821

1922
- name: Create a server Makefile to manage app tasks
2023
ansible.builtin.template:
@@ -49,13 +52,22 @@
4952
ansible.builtin.command:
5053
chdir: "{{ ansible_user_dir }}"
5154
cmd: "docker compose up -d"
55+
register: output
56+
changed_when: output.rc != 0
57+
failed_when: output.rc != 0
5258

5359
- name: Migrate on prod
5460
ansible.builtin.command:
5561
chdir: "{{ ansible_user_dir }}"
5662
cmd: "/usr/bin/make prod/migrate"
63+
register: output
64+
changed_when: output.rc != 0
65+
failed_when: output.rc != 0
5766

5867
- name: Restart everything and finish
5968
ansible.builtin.command:
6069
chdir: "{{ ansible_user_dir }}"
6170
cmd: "docker compose up -d"
71+
register: output
72+
changed_when: output.rc != 0
73+
failed_when: output.rc != 0

0 commit comments

Comments
 (0)