homeserver/friedhof/mgrote_docker_compose_deploy/tasks/main.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

16 lines
446 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: 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: true