Migrate to docker_compose_v2
This commit is contained in:
parent
0a9d3e65fe
commit
6aba26a67c
@ -3,7 +3,7 @@
|
||||
- include_tasks: present.yml
|
||||
|
||||
- name: Build Service
|
||||
community.docker.docker_compose:
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ service_dir | mandatory }}"
|
||||
state: present
|
||||
restarted: false
|
||||
|
@ -5,7 +5,7 @@
|
||||
register: dir
|
||||
|
||||
- name: Stop Service
|
||||
community.docker.docker_compose:
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ service_dir | mandatory }}"
|
||||
state: absent
|
||||
remove_orphans: true
|
||||
|
@ -3,9 +3,9 @@
|
||||
- include_tasks: present.yml
|
||||
|
||||
- name: Restart Service
|
||||
community.docker.docker_compose:
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ service_dir | mandatory }}"
|
||||
pull: true
|
||||
pull: always
|
||||
state: present
|
||||
restarted: true
|
||||
recreate: smart
|
||||
|
Loading…
Reference in New Issue
Block a user