diff --git a/tasks/build.yml b/tasks/build.yml index 58e0e7d..21e1c48 100644 --- a/tasks/build.yml +++ b/tasks/build.yml @@ -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 diff --git a/tasks/remove.yml b/tasks/remove.yml index 2e9e61d..2e2572a 100644 --- a/tasks/remove.yml +++ b/tasks/remove.yml @@ -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 diff --git a/tasks/running.yml b/tasks/running.yml index 3187258..5afad05 100644 --- a/tasks/running.yml +++ b/tasks/running.yml @@ -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