2023-10-25 22:26:17 +02:00
|
|
|
---
|
|
|
|
- name: loop docker tasks - up
|
|
|
|
ansible.builtin.include_tasks: dockercompose-up.yml
|
|
|
|
loop: "{{ docker_compose_projects }}"
|
|
|
|
when:
|
|
|
|
- item.state == "present"
|
|
|
|
- docker_compose_projects is defined
|
2024-11-10 15:50:30 +01:00
|
|
|
no_log: "{{ no_debug | default('true') }}"
|
2023-10-25 22:26:17 +02:00
|
|
|
|
|
|
|
- name: loop docker tasks - down
|
|
|
|
ansible.builtin.include_tasks: dockercompose-down.yml
|
|
|
|
loop: "{{ docker_compose_projects }}"
|
|
|
|
when:
|
|
|
|
- item.state == "absent"
|
|
|
|
- docker_compose_projects is defined
|
2024-11-10 15:50:30 +01:00
|
|
|
no_log: "{{ no_debug | default('true') }}"
|