Update docker compose usage

This commit is contained in:
Sonny Bakker 2025-04-21 17:38:47 +02:00
parent bd22ed218d
commit b66ebe24fa
4 changed files with 22 additions and 3 deletions

View file

@ -102,9 +102,24 @@
group: sonny
mode: '0755'
- name: Start container
- name: Stop current containers
community.docker.docker_compose_v2:
project_src: '{{ radicale_app_dir }}'
state: stopped
- name: Pull missing image
community.docker.docker_compose_v2:
project_src: '{{ radicale_app_dir }}'
build: always
state: stopped
- name: Remove dangling containers
community.docker.docker_compose_v2:
project_src: '{{ radicale_app_dir }}'
remove_orphans: true
state: stopped
- name: Start container
community.docker.docker_compose_v2:
project_src: '{{ radicale_app_dir }}'
state: present
build: always