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

15 lines
337 B
YAML
Raw Normal View History

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