ansible-role-docker-compose/tasks/running.yml

16 lines
374 B
YAML

---
- include_tasks: present.yml
- name: Restart Service
community.docker.docker_compose_v2:
project_src: "{{ service_dir | mandatory }}"
pull: always
state: present
restarted: true
recreate: smart
build: "never"
profiles: docker_profiles
remove_orphans: true
when: (compose_files.changed and execute == "smart") or execute == "always"