From 9640cc82d835d258a3199441e856549504b4128e Mon Sep 17 00:00:00 2001 From: mafyuh Date: Sun, 9 Jun 2024 23:36:01 +0000 Subject: [PATCH] Update deploy.yml --- deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.yml b/deploy.yml index f528edd..30330f6 100644 --- a/deploy.yml +++ b/deploy.yml @@ -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 }}"