ansible/roles/docker/handlers/main.yaml

13 lines
317 B
YAML
Raw Normal View History

2024-10-11 18:41:46 +02:00
---
2024-10-11 19:32:39 +02:00
- name: Stop service
2024-10-11 18:41:46 +02:00
community.docker.docker_compose_v2:
project_src: "{{ docker_dir }}"
2024-10-11 19:32:39 +02:00
state: stopped
listen: Restart service
- name: Start service
community.docker.docker_compose_v2:
project_src: "{{ docker_dir }}"
state: present
2024-10-12 11:21:44 +02:00
build: "{{ docker_build }}"
2024-10-11 19:32:39 +02:00
listen: Restart service