Skip to content

Commit 4ac68ba

Browse files
committed
fix remaining ansible lint errors
1 parent dcc0014 commit 4ac68ba

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:
@@ -54,13 +57,22 @@
5457
ansible.builtin.command:
5558
chdir: "{{ ansible_user_dir }}"
5659
cmd: "docker compose up -d"
60+
register: output
61+
changed_when: output.rc != 0
62+
failed_when: output.rc != 0
5763

5864
- name: Migrate on prod
5965
ansible.builtin.command:
6066
chdir: "{{ ansible_user_dir }}"
6167
cmd: "/usr/bin/make prod/migrate"
68+
register: output
69+
changed_when: output.rc != 0
70+
failed_when: output.rc != 0
6271

6372
- name: Restart everything and finish
6473
ansible.builtin.command:
6574
chdir: "{{ ansible_user_dir }}"
6675
cmd: "docker compose up -d"
76+
register: output
77+
changed_when: output.rc != 0
78+
failed_when: output.rc != 0

0 commit comments

Comments
 (0)