infrastructure/coreos-config/roles/compose_project/tasks/remove.yml
Tobias Manske 4dca002664
All checks were successful
continuous-integration/drone/push Build is passing
Allow to remove services via compose role
2022-10-30 02:31:21 +01:00

12 lines
244 B
YAML

---
- name: Stop Service
community.docker.docker_compose:
project_src: "{{ service_dir | mandatory }}"
state: absent
remove_orphans: true
- name: Remove Service
file:
state: absent
path: "{{ service_dir | mandatory }}"