homeserver/roles/mgrote.docker-compose-deploy/tasks/main.yml
mg 8a4e47ad75 Umbau docker (#337)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#337
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2022-03-06 14:10:30 +01:00

16 lines
442 B
YAML

---
- name: loop docker tasks - up
include_tasks: dockercompose-up.yml
loop: "{{ docker_compose_projects }}"
when:
- item.state == "present"
- docker_compose_projects is defined
no_log: true
- name: loop docker tasks - down
include_tasks: dockercompose-down.yml
loop: "{{ docker_compose_projects }}"
when:
- item.state == "absent"
- docker_compose_projects is defined
no_log: true