27 lines
725 B
YAML
27 lines
725 B
YAML
---
|
|
- name: Pull latest watch-party from Gitea
|
|
ansible.builtin.git:
|
|
repo: "{{ watch_party_repo }}"
|
|
dest: "{{ watch_party_dir }}"
|
|
version: main
|
|
update: yes
|
|
accept_hostkey: yes
|
|
environment:
|
|
GIT_SSL_NO_VERIFY: "true"
|
|
|
|
- name: Ensure .env exists
|
|
ansible.builtin.stat:
|
|
path: "{{ watch_party_dir }}/.env"
|
|
register: env_file
|
|
|
|
- name: Fail if .env is missing
|
|
ansible.builtin.fail:
|
|
msg: ".env file missing at {{ watch_party_dir }}/.env — create it manually on the Mac Mini first"
|
|
when: not env_file.stat.exists
|
|
|
|
- name: Deploy watch-party via Docker Compose
|
|
community.docker.docker_compose_v2:
|
|
project_src: "{{ watch_party_dir }}"
|
|
state: present
|
|
pull: always
|
|
become: false |