18 lines
685 B
YAML
18 lines
685 B
YAML
---
|
|
- name: setup external services network
|
|
community.docker.docker_network:
|
|
name: external_services
|
|
|
|
- name: setup services
|
|
include_tasks: services/{{ docker_service.value.file }}
|
|
loop: '{{ services | dict2items }}'
|
|
loop_control:
|
|
loop_var: docker_service
|
|
when: single_service is not defined and docker_service.value.file is defined and
|
|
docker_service.value.disabled_in_vagrant is not defined
|
|
|
|
- name: setup single service
|
|
include_tasks: services/{{ services[single_service].file }}
|
|
when: single_service is defined and single_service in services and services[single_service].file
|
|
is defined and services[single_service].disabled_in_vagrant is not defined
|