fixup! fixup! fixup! fixup! fixup! fixup! Migrate to docker_compose_v2
This commit is contained in:
parent
72c9f6d07c
commit
f2775bdb75
@ -2,16 +2,6 @@
|
|||||||
|
|
||||||
- include_tasks: present.yml
|
- include_tasks: present.yml
|
||||||
|
|
||||||
- name: Start Service
|
|
||||||
community.docker.docker_compose_v2:
|
|
||||||
project_src: "{{ service_dir | mandatory }}"
|
|
||||||
pull: "policy"
|
|
||||||
state: present
|
|
||||||
recreate: "auto"
|
|
||||||
build: "never"
|
|
||||||
profiles: docker_profiles
|
|
||||||
remove_orphans: true
|
|
||||||
|
|
||||||
- name: Restart Service
|
- name: Restart Service
|
||||||
community.docker.docker_compose_v2:
|
community.docker.docker_compose_v2:
|
||||||
project_src: "{{ service_dir | mandatory }}"
|
project_src: "{{ service_dir | mandatory }}"
|
||||||
@ -22,3 +12,13 @@
|
|||||||
profiles: docker_profiles
|
profiles: docker_profiles
|
||||||
remove_orphans: true
|
remove_orphans: true
|
||||||
when: (compose_files.changed and execute == "smart") or execute == "always"
|
when: (compose_files.changed and execute == "smart") or execute == "always"
|
||||||
|
|
||||||
|
- name: Start Service
|
||||||
|
community.docker.docker_compose_v2:
|
||||||
|
project_src: "{{ service_dir | mandatory }}"
|
||||||
|
pull: "policy"
|
||||||
|
state: present
|
||||||
|
recreate: "never"
|
||||||
|
build: "never"
|
||||||
|
profiles: docker_profiles
|
||||||
|
when: (compose_files.changed and execute == "smart") or execute == "always"
|
||||||
|
Loading…
Reference in New Issue
Block a user