Migrate to docker_compose_v2
This commit is contained in:
parent
0a9d3e65fe
commit
6aba26a67c
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user