Update deploy.yml

This commit is contained in:
Matt Reeves 2024-06-09 23:36:01 +00:00
parent a90be7d4d2
commit 9640cc82d8

View file

@ -2,7 +2,7 @@
- name: Deploy application
hosts: "{{ target_host }}"
vars:
repo_path: /Auto-Homelab/{{ folder }}
repo_path: "/home/{{ ansible_user }}/Auto-Homelab/{{ folder }}"
tasks:
- name: Ensure the repository is up-to-date
shell: git pull
@ -10,6 +10,6 @@
chdir: "{{ repo_path }}"
- name: Restart services
command: docker-compose up -d
command: docker compose up -d
args:
chdir: "{{ repo_path }}"