diff --git a/tasks/build.yml b/tasks/build.yml index 4c1c3bb..7ae1e26 100644 --- a/tasks/build.yml +++ b/tasks/build.yml @@ -6,7 +6,6 @@ community.docker.docker_compose_v2: project_src: "{{ service_dir | mandatory }}" state: present - restarted: false recreate: "auto" build: "always" remove_orphans: true diff --git a/tasks/running.yml b/tasks/running.yml index faaffdb..a11f21a 100644 --- a/tasks/running.yml +++ b/tasks/running.yml @@ -5,9 +5,8 @@ - name: Restart Service community.docker.docker_compose_v2: project_src: "{{ service_dir | mandatory }}" - pull: always - state: present - restarted: true + pull: "policy" + state: restarted recreate: "auto" build: "never" profiles: docker_profiles