infrastructure/playbooks/tasks/stop-unused.yml

12 lines
323 B
YAML
Raw Normal View History

2024-10-13 21:20:11 +00:00
- name: Get unused services
ansible.builtin.include_tasks:
file: tasks/get-unused.yml
when: "unused_services is undefined"
2024-10-13 21:20:11 +00:00
- name: Stop unused services
ansible.builtin.command:
cmd: docker compose down
chdir: "{{ (services_path, item) | path_join }}"
changed_when: true
loop: "{{ unused_services }}"