ansible/roles/docker/tasks/services.yml

18 lines
685 B
YAML
Raw Normal View History

---
2018-06-24 13:16:56 +00:00
- name: setup external services network
2022-11-26 08:52:41 +00:00
community.docker.docker_network:
2018-06-24 13:16:56 +00:00
name: external_services
2018-06-24 13:17:35 +00:00
- name: setup services
2022-11-26 09:47:37 +00:00
include_tasks: services/{{ docker_service.value.file }}
2022-11-26 08:52:41 +00:00
loop: '{{ services | dict2items }}'
2022-11-26 09:47:37 +00:00
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
2022-11-26 08:52:41 +00:00
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