16 lines
345 B
YAML
16 lines
345 B
YAML
|
---
|
||
|
- name: Deploy application
|
||
|
hosts: "{{ target_host }}"
|
||
|
vars:
|
||
|
repo_path: /Auto-Homelab/{{ folder }}
|
||
|
tasks:
|
||
|
- name: Ensure the repository is up-to-date
|
||
|
shell: git pull
|
||
|
args:
|
||
|
chdir: "{{ repo_path }}"
|
||
|
|
||
|
- name: Restart services
|
||
|
command: docker-compose up -d
|
||
|
args:
|
||
|
chdir: "{{ repo_path }}"
|