Update deploy.yml
This commit is contained in:
parent
a90be7d4d2
commit
9640cc82d8
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
- name: Deploy application
|
- name: Deploy application
|
||||||
hosts: "{{ target_host }}"
|
hosts: "{{ target_host }}"
|
||||||
vars:
|
vars:
|
||||||
repo_path: /Auto-Homelab/{{ folder }}
|
repo_path: "/home/{{ ansible_user }}/Auto-Homelab/{{ folder }}"
|
||||||
tasks:
|
tasks:
|
||||||
- name: Ensure the repository is up-to-date
|
- name: Ensure the repository is up-to-date
|
||||||
shell: git pull
|
shell: git pull
|
||||||
|
@ -10,6 +10,6 @@
|
||||||
chdir: "{{ repo_path }}"
|
chdir: "{{ repo_path }}"
|
||||||
|
|
||||||
- name: Restart services
|
- name: Restart services
|
||||||
command: docker-compose up -d
|
command: docker compose up -d
|
||||||
args:
|
args:
|
||||||
chdir: "{{ repo_path }}"
|
chdir: "{{ repo_path }}"
|
||||||
|
|
Reference in a new issue