Skip to content

Commit 4d87fb4

Browse files
committed
tweak ansible lint
1 parent 1a06bb5 commit 4d87fb4

9 files changed

+6
-6
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ deploy/app:
151151
@echo "Deploying version $(V) to a remote server"
152152
$(DEPLOY_CMD) playbooks/03_app.yml --extra-vars "app_version=$(V)"
153153

154-
deploy/lint:
154+
lint/deploy:
155155
$(DEPLOY_LINT_CMD) playbooks/01_setup.yml
156156
$(DEPLOY_LINT_CMD) playbooks/02_nginx.yml
157157
$(DEPLOY_LINT_CMD) playbooks/03_app.yml

deploy/playbooks/03_app.yml

+5-5
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

@@ -47,15 +47,15 @@
4747

4848
- name: Start docker compose to see if everything is running
4949
ansible.builtin.command:
50-
chdir: {{ ansible_user_dir }}
50+
chdir: "{{ ansible_user_dir }}"
5151
cmd: "docker compose up -d"
5252

5353
- name: Migrate on prod
54-
ansible.builtin.shell:
55-
chdir: /tmp/src
54+
ansible.builtin.command:
55+
chdir: "{{ ansible_user_dir }}"
5656
cmd: "/usr/bin/make prod/migrate"
5757

5858
- name: Restart everything and finish
5959
ansible.builtin.command:
60-
chdir: {{ ansible_user_dir }}
60+
chdir: "{{ ansible_user_dir }}"
6161
cmd: "docker compose up -d"
File renamed without changes.

0 commit comments

Comments
 (0)