ansible/roles/docker/handlers/main.yaml

14 lines
411 B
YAML
Raw Normal View History

2024-10-11 18:41:46 +02:00
---
2024-10-20 22:23:13 +02:00
- name: Stop service {{ docker_app_name }}
2024-10-17 16:52:38 +02:00
listen: Restart 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
2024-10-20 22:23:13 +02:00
- name: Start service {{ docker_app_name }}
2024-10-17 16:52:38 +02:00
listen: Restart service
2024-10-11 19:32:39 +02:00
community.docker.docker_compose_v2:
project_src: "{{ docker_dir }}"
state: present
2024-10-12 11:21:44 +02:00
build: "{{ docker_build }}"
2024-10-17 16:52:38 +02:00
remove_orphans: "{{ docker_remove_orphans }}"