Migrate to docker_compose_v2

This commit is contained in:
Tobias Manske 2024-01-22 14:35:23 +01:00
parent 0a9d3e65fe
commit 6aba26a67c
Signed by: tobias
GPG Key ID: 9164B527694A0709
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
- include_tasks: present.yml - include_tasks: present.yml
- name: Build Service - name: Build Service
community.docker.docker_compose: community.docker.docker_compose_v2:
project_src: "{{ service_dir | mandatory }}" project_src: "{{ service_dir | mandatory }}"
state: present state: present
restarted: false restarted: false

View File

@ -5,7 +5,7 @@
register: dir register: dir
- name: Stop Service - name: Stop Service
community.docker.docker_compose: community.docker.docker_compose_v2:
project_src: "{{ service_dir | mandatory }}" project_src: "{{ service_dir | mandatory }}"
state: absent state: absent
remove_orphans: true remove_orphans: true

View File

@ -3,9 +3,9 @@
- include_tasks: present.yml - include_tasks: present.yml
- name: Restart Service - name: Restart Service
community.docker.docker_compose: community.docker.docker_compose_v2:
project_src: "{{ service_dir | mandatory }}" project_src: "{{ service_dir | mandatory }}"
pull: true pull: always
state: present state: present
restarted: true restarted: true
recreate: smart recreate: smart