frigate/stop.yaml

24 lines
681 B
YAML
Raw Normal View History

2023-05-11 19:03:34 -04:00
- 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