24 lines
681 B
YAML
24 lines
681 B
YAML
- name: Stop Frigate
|
|
hosts: Barad-dur
|
|
tasks:
|
|
- name: Create temporary Docker Compose directory
|
|
ansible.builtin.tempfile:
|
|
state: directory
|
|
register: docker_compose_dir
|
|
- name: Copy docker-compose.yaml
|
|
ansible.builtin.copy:
|
|
src: conf/docker-compose.yaml
|
|
dest: '{{docker_compose_dir.path}}/docker-compose.yaml'
|
|
mode: preserve
|
|
|
|
- name: Docker Compose down Frigate
|
|
community.docker.docker_compose:
|
|
project_name: frigate
|
|
project_src: '{{docker_compose_dir.path}}'
|
|
state: absent
|
|
|
|
- name: Remove temporary Docker Compose directory
|
|
ansible.builtin.file:
|
|
path: '{{docker_compose_dir.path}}'
|
|
state: absent
|