mirror of
https://github.com/Crocmagnon/ansible.git
synced 2024-12-22 22:11:58 +01:00
15 lines
469 B
YAML
15 lines
469 B
YAML
---
|
|
- name: Stop service {{ docker_app_name }}
|
|
listen: Restart service
|
|
community.docker.docker_compose_v2:
|
|
project_src: "{{ docker_dir }}"
|
|
state: stopped
|
|
when: docker_start_service
|
|
- name: Start service {{ docker_app_name }}
|
|
listen: Restart service
|
|
community.docker.docker_compose_v2:
|
|
project_src: "{{ docker_dir }}"
|
|
state: present
|
|
build: "{{ docker_build }}"
|
|
remove_orphans: "{{ docker_remove_orphans }}"
|
|
when: docker_start_service
|