Skip to content

Commit 94fec58

Browse files
committed
tweak ansible lint
1 parent 69ab6ca commit 94fec58

File tree

9 files changed

+6
-6
lines changed

9 files changed

+6
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ deploy/app:
160160
$(DEPLOY_CMD) playbooks/03_app.yml --extra-vars "app_version=$(V)"
161161
$(DEPLOY_CMD) playbooks/04_cron.yml
162162

163-
deploy/lint:
163+
lint/deploy:
164164
$(DEPLOY_LINT_CMD) playbooks/01_setup.yml
165165
$(DEPLOY_LINT_CMD) playbooks/02_nginx.yml
166166
$(DEPLOY_LINT_CMD) playbooks/03_app.yml

deploy/playbooks/03_app.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- name: Build with a given commit hash
1313
# This will be stored in local registry, and available as version to docker-compose
1414
# where we can just reference correct version
15-
ansible.builtin.shell:
15+
ansible.builtin.command:
1616
chdir: /tmp/src
1717
cmd: "/usr/bin/make docker/build V={{ app_version }}"
1818

@@ -52,15 +52,15 @@
5252

5353
- name: Start docker compose to see if everything is running
5454
ansible.builtin.command:
55-
chdir: {{ ansible_user_dir }}
55+
chdir: "{{ ansible_user_dir }}"
5656
cmd: "docker compose up -d"
5757

5858
- name: Migrate on prod
59-
ansible.builtin.shell:
60-
chdir: /tmp/src
59+
ansible.builtin.command:
60+
chdir: "{{ ansible_user_dir }}"
6161
cmd: "/usr/bin/make prod/migrate"
6262

6363
- name: Restart everything and finish
6464
ansible.builtin.command:
65-
chdir: {{ ansible_user_dir }}
65+
chdir: "{{ ansible_user_dir }}"
6666
cmd: "docker compose up -d"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)