16 lines
506 B
YAML
16 lines
506 B
YAML
---
|
|
- 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
|
|
no_log: "{{ no_debug | default('true') }}"
|
|
|
|
- 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
|
|
no_log: "{{ no_debug | default('true') }}"
|